Skip to content
Prev 43893 / 398528 Next

0.1 + 0.2 != 0.3 revisited

Christian Hoffmann <christian.hoffmann at wsl.ch> writes:
(53, since the leading 1 is not stored...)

Actually, in the x86 FPUs numbers get extended to 64 bits during
evaluation, so after alignment for addition, the smaller numbers may
have bits beyond the truncation point of the larger ones. These bits
disappear when the result is stored, but rounding may be affected
giving those unit-in-the-last-place differences.