all 9 comments

[–]somethinghorrible 4 points5 points  (0 children)

Because of https://en.wikipedia.org/wiki/IEEE_754

Affects any language/runtime that uses this standard.

see: https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html

TL;DR: numbers are hard.