0.1 in floating point

The sign, exponent and mantissa bits of 0.1, and the exact value it stores.

Stored value and bits

Examples

Note

0.1 has no exact binary form, so it is stored as the nearest double, a tiny bit above 0.1. It prints as 0.1 because that is the shortest decimal that rounds back to the same bits.

Other notable values