halfprecision
Half precision, or binary16, is a 16-bit floating-point format defined by the IEEE 754 standard. It uses 1 sign bit, 5 exponent bits, and 10 fraction (mantissa) bits. The exponent has a bias of 15, allowing a range of real values, with normal numbers using an implicit leading 1 in the significand and subnormal numbers (when the exponent is zero) encoding the fraction without that leading bit.
In normal form, values are approximately (-1)^sign × (1.fraction) × 2^(exponent − bias). Subnormal numbers have exponent
Half precision stores two bytes per value, making it attractive for reducing memory usage and bandwidth in
Related formats include brain-friendly alternatives like bfloat16, which preserves the FP32 exponent range but uses fewer