Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on 0.3 - 0.2 == 0.2 - 0.1 is falsy. Which language gets this right?.
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.
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.)