Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> In practice, floating-point errors are seldom a problem
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 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
|
|