IEEE 754 Float Converter

See how a 32-bit or 64-bit floating point number is stored: sign, exponent and mantissa, hex, and the exact decimal value it really holds.

Processed on your device. Files are not uploaded

How to see the bits of a float

  1. Enter a number or hex bits

    Such as 0.1 or 0x3F800000.

  2. Choose 32 or 64 bits

    A float or a double.

  3. Read the parts

    Sign, exponent, mantissa and the exact value are shown.

Worked example

This is what IEEE 754 Float Converter gives for its own sample values. Open the tool above and change anything to try your own.

Number, or hex bits

0.1
Format
64-bit (double)
Input is
A number

Result

Value stored
0.1
Exact decimal value
0.1000000000000000055511151231257827021181583404541015625
Kind
normal
Sign bit
0
Exponent bits
01111111011
Mantissa bits
1001100110011001100110011001100110011001100110011010
Hex
0x3FB999999999999A
Binary
0 01111111011 1001100110011001100110011001100110011001100110011010

About IEEE 754 Float Converter

See how a floating point number is stored: the sign, exponent and mantissa bits, the hex form and the exact decimal value actually held. It explains why 0.1 + 0.2 is not exactly 0.3.

FAQs

Why is 0.1 not exact?

Binary cannot write tenths exactly, just as decimal cannot write thirds. The stored value is the closest one that fits.

What are NaN and Infinity?

Special values with an exponent of all ones. Infinity has a zero mantissa and NaN has a nonzero one.

Can I convert hex to decimal?

Use Number Base Converter.

Related tools