2 ms·
On Using BigDecimal
Why and how use BigDecimal, when there are alternatives like BigInt or Float?
We found surprisingly little content to help us, and shared our approach here:
https://github.com/getlago/lago/wiki/%5BRuby%5D-On-using-BigDecimal
- HelloNurse 4y agoJudging from the linked post, you don't appear to address the difficult issues of rounding and conversion to and from strings in any meaningful way. To have an "approach" you need to know how to round intermediate and final results and how to convert every input and output.