Worked example
Operation: Decimal a: 1 Bit width: 32
(−1)⁰ × (1 + 0) × 2^(127 − 127) = 1
→ 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]