florindaniel
Programmer
I have this values: (SET DECIMALS TO 6 environnement)
value = 265.96 and qty = 20.
obviously, price = value / qty = 13.298
BUT FLOOR(1000000*vt/qq)/1000000 = 13.297999 !!!
Actually, what I am trying to do is to calculate the truncated rounded value to the sixth digit following the decimal point.
i.e. 14.736256732 goes to 14.736256, not 14.736257
the method I found is that: Floor(1000000*value/quantity)/1000000 but it gives that peculiar (and wrong) result.
Any ideas?
Thank you, Daniel
value = 265.96 and qty = 20.
obviously, price = value / qty = 13.298
BUT FLOOR(1000000*vt/qq)/1000000 = 13.297999 !!!
Actually, what I am trying to do is to calculate the truncated rounded value to the sixth digit following the decimal point.
i.e. 14.736256732 goes to 14.736256, not 14.736257
the method I found is that: Floor(1000000*value/quantity)/1000000 but it gives that peculiar (and wrong) result.
Any ideas?
Thank you, Daniel