Floating Point Calculator (IEEE 754)

Convert decimal numbers to 32-bit single-precision floating point representation.
Calculator
Enter your values
Analysis
Interpretation of the current calculator output

Enter values to see detailed analysis and insights.

How to Use

Step-by-step instructions
  1. 1Enter a decimal number.
  2. 2The calculator will show the binary and hexadecimal representation.
  3. 3It also breaks down the Sign, Exponent, and Mantissa.

IEEE 754 Single Precision

Represents numbers using 1 sign bit (S), 8 exponent bits (E), and 23 mantissa bits (M).
Value = (-1)^S × 1.M × 2^(E-127)

Variables:

SSign bit (0=+, 1=-)
EExponent (biased by 127)
MMantissa (fractional part)

Example

12.5

Inputs:

Decimal:12.5

Steps:

  1. 1.Binary = 01000001010010000000000000000000
  2. 2.Sign = 0 (+)
  3. 3.Exponent = 10000010 (130 - 127 = 3)
  4. 4.Mantissa = 1.1001... (1 + 0.5 + 0.0625 = 1.5625)
  5. 5.Value = 1.5625 * 2^3 = 12.5
Result:
0x41480000

Frequently Asked Questions

What is NaN?

Not a Number. In IEEE 754, it is represented by all 1s in the exponent and a non-zero mantissa.