Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why does 0.1 and 0.2 = 0.30000000000000004?. Parent comment
Worth noting that this is a risk whenever there is rounding, if this chain of logic happens with cents as ints, it is still wrong:
1 / 2 => 0 0 * 2 => 0
1 == 0
There are no comments on this comment yet.
Worth noting that this is a risk whenever there is rounding, if this chain of logic happens with cents as ints, it is still wrong:
Therefore: