← All text tools

IEEE 754 Floating Point Converter

See the sign, exponent and fraction bits of a decimal number in 32-bit and 64-bit floating point, with the exact stored value and the rounding error.

  • Free
  • No sign-up
  • Works on any device

About IEEE 754 Floating Point Converter

Computers store most decimal numbers as binary floating point, which is why 0.1 + 0.2 is not exactly 0.3. This converter shows how a number is stored in IEEE 754 single precision (32 bits) and double precision (64 bits): one sign bit, an exponent and a fraction, drawn in three colours. For each format you get the hexadecimal word, the exponent with its bias, the exact decimal value that is really stored, and how far that is from the number you typed. Typing 0.1 shows 0x3DCCCCCD in 32 bits and 0x3FB999999999999A in 64 bits.

How to use IEEE 754 Floating Point Converter

  1. Type a number such as 0.1, -12.5, 1.5e-7, Infinity or NaN.
  2. Look at the coloured sign, exponent and fraction bits for the 32-bit and the 64-bit format.
  3. Read the hexadecimal word, the exact stored value and the rounding difference.

Why use this tool?

Also known as

Frequently asked questions

Why is 0.1 not stored exactly?

Binary fractions only cover halves, quarters, eighths and so on, so 0.1 repeats forever in binary and must be rounded. In 64 bits the stored value is slightly larger than 0.1.

What is the exponent bias?

The exponent is stored with an offset so it needs no sign bit: 127 for 32-bit and 1023 for 64-bit. The actual power of two is the stored value minus the bias.

How are infinity, NaN and zero stored?

An exponent of all ones with a zero fraction is infinity, and with a non-zero fraction is NaN. An exponent of all zeros with a zero fraction is zero, and signed zero exists too.

Is IEEE 754 Floating Point Converter free?

Yes. IEEE 754 Floating Point Converter on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put IEEE 754 Floating Point Converter on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools