language agnostic – Is floating point math broken?
Floating point numbers are represented, at the hardware level, as fractions of binary numbers (base 2). For example, the decimal fraction: 0.125 has the value 1/10 + 2/100 + 5/1000 and, in the same way, the binary fraction: 0.001 has the value 0/2 + 0/4 + 1/8. These two fractions have the same value, the … Read more