in reply to Re: what did I just see..?
in thread what did I just see..?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: what did I just see..?
by Your Mother (Archbishop) on Mar 22, 2021 at 01:24 UTC | |
by BillKSmith (Monsignor) on Mar 22, 2021 at 01:45 UTC | |
by stevieb (Canon) on Mar 22, 2021 at 01:27 UTC | |
by LanX (Saint) on Mar 22, 2021 at 01:36 UTC | |
|
Re^3: what did I just see..?
by BillKSmith (Monsignor) on Mar 22, 2021 at 03:17 UTC | |
by LanX (Saint) on Mar 22, 2021 at 04:01 UTC |