Sorry, I must disagree.
I know of a case where fiscal authorities rejected a calculation because it was 1 cent off. Which led to a missed deadline and penalty payments, IIRC.
If you need cent accuracy then calculate in cents. Never floats!
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
PS: And if you do accounting, inform yourself about the required precision and rounding rules.
In reply to Re^2: what did I just see..?
by LanX
in thread what did I just see..?
by ishaybas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |