IEEE 754 Floating-Point Converter

Show the IEEE 754 single (32-bit) and double (64-bit) representation of a number: sign, exponent, mantissa and rounding error.

Results

Single precision (bits)β€”
Single (hex)β€”
Stored value (float32)β€”
Double precision (bits)β€”
Double (hex)β€”
Stored value (float64)β€”
float32 rounding errorβ€”

How to use the IEEE 754 Floating-Point Converter

  1. Enter or select: Decimal number.
  2. The results (Single precision (bits), Single (hex), Stored value (float32), Double precision (bits), Double (hex), Stored value (float64), float32 rounding error) are calculated instantly as you type.
  3. Use β€œCopy link” to share the calculation with the same input values.

Formula

  • value = (βˆ’1)^s Γ— 1.m Γ— 2^(e βˆ’ bias), bias = 127 (32-bit) / 1023 (64-bit)

About this tool

Bits are shown as sign | exponent | mantissa.