News for hackers. Stuff that matters.
Re:Aztec monks with 1/55 HP no longer die when picking up or... by wruza on Saturday April 15, 2023 @12:40PM (#35582206)
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…

Re:Aztec monks with 1/55 HP no longer die when picking up or... by DaiPlusPlus on Sunday April 16, 2023 @12:13AM (#35587217)
In that situation you’re meant to use integer-cents though.