News for hackers. Stuff that matters.
Re:Never Use Floats for Money (2016) by Will_Parker on Thursday February 13, 2020 @06:36PM (#22322484)
In terms of purity, sure, but pragmatically, meh. You do need to round to cents in ui and after every calculation though. Exercise: how large do amounts need to be before losing a penny?

I used to evangelize integer cents but then I worked on a few systems with floats and the world didn't fall over.

There are no comments on this comment yet.