previous | start | next

The exponent bias

s:     sign field = 1 bit
e: exponent field = 8 bits
f: fraction field = 23 bits

The exponent field, e, is treated as an unsigned integer.

The actual exponent, E, is given by

      E = e - bias

where bias = 28 - 1 - 1

Note that this means to get the exponent field e,

      e = E + bias


In binary bias is:    0111 1111       (or in hex: 0x7f)



previous | start | next