Floating Point Converter

Enter a decimal number and see its IEEE 754 single (32-bit) and double (64-bit) binary floating-point representation with labeled sign, exponent, and mantissa fields.

Try:

Summary

Enter a decimal number and see its IEEE 754 single (32-bit) and double (64-bit) binary floating-point representation with labeled sign, exponent, and mantissa fields.

How it works

  1. Enter any decimal number (integer or floating-point, including negatives).
  2. The tool extracts the sign bit: 0 for positive, 1 for negative.
  3. The value is normalized into the form 1.mantissa × 2^exponent.
  4. The biased exponent is stored (bias = 127 for 32-bit, 1023 for 64-bit).
  5. Mantissa bits are filled by repeatedly multiplying the fractional part by 2.
  6. Results are shown for both 32-bit and 64-bit IEEE 754 formats side by side.

Use cases

  • Debug floating-point precision issues in low-level code.
  • Study how IEEE 754 encodes real numbers for computer science courses.
  • Verify the bit layout of floats when writing C/C++/Rust bit-manipulation code.
  • Understand why 0.1 + 0.2 ≠ 0.3 in most programming languages.
  • Cross-check floating-point results when porting code between platforms.
  • Learn about subnormal numbers, infinities, and NaN representations.

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu