IEEE 754 Float Inspector - Floating Point Visualizer
Visualize and decode IEEE 754 floating-point numbers (float32 and float64). See the binary layout, compare precision and detect special values.
Float32 (Single) (32-bit)
Float64 (Double) (64-bit)
Precision Difference (Float32 vs Float64):
Float32 (Single) (32-bit)
Float64 (Double) (64-bit)
Examples
Click an example to fill the decimal input and encode.
| Decimal | Result (hex 32-bit · hex 64-bit) |
|---|---|
| 1.5 | 0x3FC00000 · 0x3FF8000000000000 |
| -2.75 | 0xC0300000 · 0xC006000000000000 |
| 0.1 | 0x3DCCCCCD · 0x3FB999999999999A |
| 0 | 0x00000000 · 0x0000000000000000 |
| 3.14159 | 0x40490FD0 · 0x400921F9F01B866E |
Frequently asked questions
Why does 0.1 show a binary pattern that isn't exactly 0.1?
IEEE 754 stores base-2 fractions: 0.1 has no finite binary representation, so the stored value is the nearest representable double (0.1000000000000000055511...). That is the classic floating-point rounding.
What do the sign, exponent and mantissa fields mean?
The value is (−1)^sign × 1.mantissa × 2^(exponent−127) in 32-bit (−1022 for the 64-bit 11-bit exponent). The tool shows the bit layout and the real exponent.
What are subnormal numbers?
Values too small for the normal exponent range (near 1.4E-45 in 32-bit); the exponent field is 0 and the mantissa carries the value without the implicit leading 1. They fill the gap between zero and the smallest normal number.