Re:64-Bit Bank Balances ‘Ought to Be Enough for Anybody’?
by manicennui on Tuesday September 19, 2023 @04:26PM
(#37576028)
Arbitrary precision decimals are the best solution in most cases. I have worked at multiple companies where people represent currency with floats and then wonder why they get strange results in some cases.
They're saying that only arbitrary precision arithmetics are acceptable, and additionally claiming that everybody else in the world gets money arithmetics wrong.
I doubt both of these statements, and especially the assertion that there's exactly one "correct" way of doing arithmetics with money.