The imprecision of double precision floating point: a demonstration
4 min readMar 2, 2024
Many beginning programmers, and even a lot of professional programmers, don’t understand that the floating point number format is inherently imprecise. Any number can be represented in floating point if we are willing to allow infinite variance.
In other words, the result of a floating point calculation can be wrong by a factor of infinity. The…