News for hackers. Stuff that matters.
Re:0.3 - 0.2 == 0.2 - 0.1 is falsy. Which language gets this... by Piskvorrr on Thursday October 04, 2012 @10:56AM (#4612556)
It depends on what the meaning of the word "is" is.

In other words, floating point operations in binary computers can give unintuitive results; welcome to the bizarre world of programming. This may be a useful starting point for reading: http://stackoverflow.com/questions/1167691/ieee-floating-poi... , or perhaps this: http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.ht...

(Note that most programming languages have a prominent warning about this in the documentation.)

There are no comments on this comment yet.