fp32
FP32, or 32-bit floating-point, is the binary32 format defined by the IEEE 754 standard. It encodes numbers with 1 sign bit, 8 exponent bits, and 23 fraction bits, totaling 32 bits. The value for normal numbers is (-1)^sign × (1 + mantissa/2^23) × 2^(exponent - 127), where the exponent bias is 127. When the exponent field is zero, the number is subnormal or zero; when the exponent is all ones (255), the number represents infinity or NaN.
Normal values span roughly -3.4028235 × 10^38 to +3.4028235 × 10^38. Subnormal numbers fill the tiny subnormal
In computing, FP32 is widely supported by CPUs and GPUs, with a 4-byte memory footprint per value.
Compared with FP64 (double precision), FP32 has a smaller mantissa and exponent range, trading accuracy for