✦ Spark of Why

Free tool · runs in your browser

IEEE 754 converter with steps (16, 32 and 64 bit)

Type a decimal number (or a hex bit pattern) and see exactly how a computer stores it: sign, biased exponent, mantissa, and the exact decimal value it really keeps.

Questions

Why is 0.1 not exact?
0.1 has an infinitely repeating binary expansion (0.000110011…), so a finite number of mantissa bits can only hold the nearest value.

What is the bias?
The exponent is stored as an unsigned number with an offset (bias): 1023 for 64-bit, 127 for 32-bit, 15 for 16-bit.

Is my number sent anywhere?
No. The conversion runs in your browser.

All tools and explanations