News for hackers. Stuff that matters.
Re:64-Bit Bank Balances ‘Ought to Be Enough for Anybody’? by weinzierl on Tuesday September 19, 2023 @12:11PM (#37572064)
"For accounting you should only ever use arbitrary precision math library"

I'm a bit surprised by this advice. I thought the common wisdom was to use a decimal type like BigDecimal in Java.

Re:64-Bit Bank Balances ‘Ought to Be Enough for Anybody’? by cwmma on Tuesday September 19, 2023 @12:35PM (#37572458)
BigDecimal is an arbitrary precision type so using BigDecimal is how you would follow said advice in Java.
Re:64-Bit Bank Balances ‘Ought to Be Enough for Anybody’? by c2h5oh on Tuesday September 19, 2023 @12:48PM (#37572649)
BitInteger and BigDecimal are arbitrary precision types in Java