Re:64-Bit Bank Balances ‘Ought to Be Enough for Anybody’?
by yyyk on Tuesday September 19, 2023 @08:46AM
(#37569167)
Every financial system I've seen uses either decimal floating point or integers. Using normal float is just asking for trouble.
[ Parent
| on HN ]
Re:64-Bit Bank Balances ‘Ought to Be Enough for Anybody’?
by u320 on Tuesday September 19, 2023 @09:11AM
(#37569460)
Float can be justified where performance is more important than accuracy. Which does happen sometimes in the financial world.
Re:64-Bit Bank Balances ‘Ought to Be Enough for Anybody’?
by fer on Tuesday September 19, 2023 @01:02PM
(#37572900)
I've seen floats for money in production, not a financial system per se, but it moved amounts around external systems that often would include some financial ones. It worked surprisingly well given the amounts involved (anywhere from tens to thousands of EUR/USD), and when I asked about the off by +-0.01 errors every now I was told they were "not worth fighting by the customers".
Re:64-Bit Bank Balances ‘Ought to Be Enough for Anybody’?
by yyyk on Wednesday September 20, 2023 @02:03AM
(#37580866)
Most customers may not care, but reports and automated processes likely will when a customer is 'in debt' thanks to small differences, and the tax authority in certain countries also care when the sum of the differences is large enough.