Why not fixed point
Integers are exact on a short, evenly spaced range: 32 bits hold every integer from about to , spaced 1 apart. Science needs and with a few significant digits, and fractions such as .
Notation. with sign , significand , exponent . Stored fields: unsigned exponent , fraction , bias, precision (24 single, 53 double). is rounded to a representable value; the local gap; machine epsilon; unit roundoff.
Baseline: fixed point. Q16.16 reads a 32-bit two’s-complement integer as . Spacing everywhere; becomes (0.006% error). Absolute error is fixed, so relative error explodes for tiny values — is stored 53% too large, and anything below becomes 0. The range stops near 32,768, so a product of two moderate numbers overflows. Fixed point survives when the range is known (DSP, quantized nets). For general work the scale must travel with the number.