IEEE 754 Floating-Point Converter
See the exact sign, exponent and mantissa bits of a number in 32-bit and 64-bit floating point.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Step 1: Open IEEE 754 Floating-Point Converter and add your input
Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.
- 2Step 2: What IEEE 754 Floating-Point Converter does
See the exact sign, exponent and mantissa bits of a number in 32-bit and 64-bit floating point.
- 3Step 3: Read the result and compare
The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.
- 4Step 4: Copy or save it
Copy the result or download it. For an important decision, confirm it with the official source or an adviser.
About this tool
Type a decimal number (or switch to hex and type 8 or 16 hex digits). The converter shows how it is stored as a 32-bit float and a 64-bit double: the sign, exponent and mantissa bits, the hex pattern, the exact stored value and the rounding error.
Layout
A float has 1 sign bit, 8 exponent bits (bias 127) and 23 mantissa bits. A double has 1, 11 (bias 1023) and 52. The value is (−1)^sign × 1.mantissa × 2^(exponent − bias). An all-zero exponent means zero or a subnormal number, an all-one exponent means infinity or NaN.
Why 0.1 is not exact
0.1 has no finite binary expansion, so it is rounded: the float holds 0.100000001490116… and the double 0.1000000000000000055….
Worked example
0.1 is 0x3DCCCCCD as a float (0 01111011 10011001100110011001101) and 0x3FB999999999999A as a double. The float is off by about 1.49 × 10⁻⁹.
Tips for best results
Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.
Quick facts
- Category: Math & Science
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in many languages.
- Content last reviewed:
Frequently asked questions
Why does 0.1 + 0.2 not equal 0.3?
Neither is stored exactly, so the sum is off by a tiny rounding error.
How do I read a hex pattern?
Switch to hex mode and type 8 digits for a float or 16 for a double.
What is a subnormal number?
A very small number with a zero exponent field and reduced precision.
What are NaN and infinity?
Special patterns with an all-one exponent.
