Re:Your balance is $0.30000000004
by beatgammit on Thursday February 20, 2020 @10:49AM
(#22375863)
Yeah, nobody is going to notice or care about an error of a cent or two for something like retail, especially if it evens out in the long run. It matters for finance, not for stuff like Uber or Amazon. Just make sure you render it properly on the front end and nobody will care whether you use floats, ints, or decimals. Be consistent in the back end and careful in the front end, ideally with standard functions for translations.
[ Parent
| on HN ]
There are no comments on this comment yet.