Rounding error

The small gap between a decimal value and the nearest one the machine can actually store. It is why a sum of decimals can print 0.30000000000000004, and why decimals are compared by closeness rather than exact equality.

Back to the glossary