Hacker News new | ask | show | jobs
by JackC 4405 days ago
This headline is backwards -- it's the opposite of the actual stackoverflow question. The question is why, in the D language, `0.1 + 0.2 == 0.3` is true, when it should be false given the underlying floating point implementation.

(Spoiler alert: the answer is that the addition is done at compile time rather than run time.)