IEEE 754 Float Explorer
Decompose numbers into IEEE 754 binary32/64 sign, exponent, and mantissa bits. Toggle bits, step floats, and see exact decimal values with rounding error analysis.
Loading tool...
What is IEEE 754 Float Explorer?
The IEEE 754 Float Explorer is a browser-based tool for inspecting how floating-point numbers are actually stored. It decomposes any value into its binary64 or binary32 bit pattern β sign bit, biased exponent, mantissa, and implicit leading bit β then reconstructs the exact rational value the bits represent using BigInt arithmetic, entirely offline.
Key Benefits
- Understand why decimal fractions like 0.1 are stored inexactly
- Debug float comparisons and equality surprises at the bit level
- Measure ULP spacing and precision at any exponent
- Decode hex bit patterns from debuggers, specs, or wire formats
- Teach or learn IEEE 754 with a live, clickable bit grid
Common Use Cases
- β’Explaining the classic 0.1 + 0.2 result in code reviews or class
- β’Verifying float32 rounding behavior before porting code to GPU or embedded targets
- β’Decoding bit patterns seen in hex dumps, serializers, or protocol buffers
- β’Checking subnormal handling near zero for scientific or DSP computations
- β’Preparing interview material on floating-point internals
How to Use the IEEE 754 Float Explorer
- Enter a number: Type a decimal number such as 0.1 or -2.75, or paste a full hex bit pattern like 0x3FB999999999999A. Pick binary64 or binary32 precision.
- Read the bit fields: The color-coded grid shows the sign bit, biased exponent, and mantissa, plus the classification: normal, subnormal, zero, infinity, or NaN.
- Toggle and step bits: Click any bit to flip it and watch the value update, or use the next/previous buttons to step through representable floats and measure ULP spacing.
- Check exactness: Compare the exact BigInt-computed decimal value and the rounding error analysis against the number you typed.
Key Features
- Decompose numbers into sign, exponent, and mantissa bit fields for binary64 and binary32.
- Interactive bit grid β click any of the 64 or 32 bits to toggle it and rebuild the value.
- Classifies values as normal, subnormal, zero, infinity, or NaN with color cues.
- Exact decimal reconstruction of the stored bit pattern using BigInt arithmetic.
- Step to adjacent representable floats to visualize ULP spacing at any scale.
- Rounding error panel comparing the requested decimal with the value actually stored.