The bias is an offset which is always applied to the exponent of a floating point number, $127$ for single precision and $1023$ for double precision.

We use a bias instead of two’s complement as it allows for the numeric ordering to be the same as the lexicographic ordering which allows fast size comparisons of numbers.

Example: convert single-precision exponent :

Subtract the bias to find .