3 ms·
Julia Evans: about the “don't use floating point for money” advice
- Kon-Peki 4y agoMoney is a human construct. It’s not pure mathematics. If you want to mess around with it without learning the human-created rules and practices surrounding the currency you are using, or if you think you can have some sort of universal currency handler, then you’ll be less wrong if you avoid floating point. I’ve seen the sausage being made, and I assure you that trillions of dollars are being managed with floating point math, correctly.