Re:Ask HN: How to handle financial calculations precisely?
by fedeb95 on Wednesday January 25, 2023 @03:14PM
(#34523540)
Sure thing. But how should I use BigDecimal optimally when performing operations between them? Which MathContext to set when dealing with money and specifically converting between amounts and percentages? I can't seem to find references online. Ideally I'd like some theorem that proves me I need a precision up to n for say amounts in the order of magnitude of ten billions.
[ Parent
| on HN ]
There are no comments on this comment yet.