News for hackers. Stuff that matters.
Re:0.30000000000000004 by piadodjanho on Monday December 02, 2019 @10:01PM (#21689527)
In a previous discussion, someone was worrying about using floats to represent price in JS. I think this is a consequence on the fear mongering on using floats to store currencies.

Floating Points are hard. There is a study done with academics that shows that even researches that works with float point everyday forget about the format intricacies. And the study didn't even look into the compiler mess.

But I agree with you, some (a lot?) of caution is needed when working with float point is good.

There are no comments on this comment yet.