Re:Why does 0.1 and 0.2 = 0.30000000000000004?
by gorgoiler on Wednesday February 08, 2023 @03:10PM
(#34714180)
Paging Colin Percival to talk about picodollars. The medium strength advice on this topic is to use integer math with cents as your unit. Colin’s advice is to choose the smallest possible unit you can that will avoid overflow (I think) hence why he prices tarsnap in picodollars: https://www.tarsnap.com/picoUSD-why.html
[ Parent
| on HN ]