![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re^2: what did I just see..?by LanX (Sage) |
on Mar 22, 2021 at 01:06 UTC ( #11130061=note: 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 Section
Seekers of Perl Wisdom
|
|