I need to return a value with five decimal places.
If a value is 1.999999, the Format command returns 2.
var = 1.999999
debug.print Format(var, "#.00000")
Returns 2
I need it to return 1.99999
Mathematically I can change the value but there has got to be a better way. Can rounding be disabled?
This value can be multiplied by as much as a million so it does mater. I know 2 is closer to the original value but this is what they want.
Thank you.
If a value is 1.999999, the Format command returns 2.
var = 1.999999
debug.print Format(var, "#.00000")
Returns 2
I need it to return 1.99999
Mathematically I can change the value but there has got to be a better way. Can rounding be disabled?
This value can be multiplied by as much as a million so it does mater. I know 2 is closer to the original value but this is what they want.
Thank you.