| Start |
|---|
| Floating Point Numbers are Weird The first mistake that nearly every single programmer makes is presuming that this code will work as intended: The novice programmer assumes that this will sum up every single number in the range Two things happen that make this untrue:
The reason that this happens is that Floating Point Numbers represent Approximations of their assigned values. The classical example is the following computation: Though what we the programmer see is three numbers written in base10, what the compiler (and the underlying hardware) see are binary numbers. Because |
Read Article
https://develop.horje.com/learn/1434/reference