4 ms·
You'd be surprised at the prevalence of floating points used to represent currency. I cringe every time We all cringe but then there’s a “floating point or gtf
by wruza 4y ago
You'd be surprised at the prevalence of floating points used to represent currency. I cringe every time
We all cringe but then there’s a “floating point or gtfo” ultimatum that most languages present to you. People would be happy to not use FP. But the reality is, you can have a monetary column in a 30 years old database engine, but not in a 5 years old language runtime. When you only have a hammer…
- DaiPlusPlus 4y agoIn that situation you’re meant to use integer-cents though.