Worked example
Operation: Decimal a: 1 Bit width: 32
→ hex: 3F800000; 0 | 01111111 | 00000000000000000000000
Method and scope
Inspect Float32 or Float64 using DataView, most significant bit first. Fields are sign | exponent | fraction. Decimal input accepts NaN and ±Infinity; raw hex/bits require exact width. The long decimal shows the stored approximation, not the original decimal.
(−1)ˢ × (1.f)₂ × 2^(e−bias) [normal]
Precision and limits
≈ marks an approximation. Display rounding does not change the internal calculation.