IEEE 754 bit explorer

Inspect sign, exponent and fraction bits for a decimal input. Compare single-precision rounding with the stored value and inspect overflow classification.

The example value has been entered. Check it immediately or change the value.

Input is processed in the browser. Refreshing returns a sample value.

Result

Instructions and example

Read a JavaScript number, store at the chosen width with DataView, then split bits in big-endian byte order.

Storing 0.1 in 32 bits yields 3d cc cc cd and value 0.10000000149011612.

Supports 32 and 64 bits. Input is first converted to a 64-bit number, so this is not arbitrary-precision decimal analysis.

Frequently asked questions

Does the IEEE view distinguish negative zero?

Yes. Input -0 shows its sign bit and stored value -0.

How is a value outside the 32-bit range shown?

A finite input overflowing single precision shows Infinity classification and stored value.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors