Exponent Bias

In IEEE 754 floating point numbers the exponent is biased in the engineering sense of the word the value stored is offset from the actual value by the exponent bias. Biasing is done because exponents have to be signed values in order to be able to represent both tiny and huge values, but two's complement, the usual representation for signed values, would make comparison harder. To solve this problem the exponent is biased before being stored, by adjusting its value to put it within an unsigned range suitable for comparison. When interpreting the floating-point number the bias is subtracted to retrieve the actual exponent.
  • For a single-precision number, an exponent in the range −126 .. +127 is biased by adding 127 to get a value in the range 1 .. 254 (0 and 255 have special meanings).
  • For a double-precision number, an exponent in the range −1022 .. +1023 is biased by adding 1023 to get a value in the range 1 .. 2046 (0 and 2047 have special meanings).
* For a quad-precision number, an exponent in the range −16382 .. +16383 is biased by adding 16383 to get a value in the range 1 .. 32766 (0 and 32767 have special meanings).

 

<< PreviousWord BrowserNext >>
bobby bare
sphecidae
khami
museum of the city of new york
andrew coyne
juice newton
cat glover
m commerce
apollonia 6
western massachusetts
bresaola
lnfs
stanislaw jerzy lec
riverview, new brunswick
deborah coyne
apocalypso
michael (song)
crabronidae
economy of europe
subsistence economy
special rights
livestock guardian dog
so little time
rufus
breeches role
stuart henry
pere esteve i abad
michael keenan
malcontent
don fernando marcos
blown flaps
order of the visitation of holy mary
aharon appelfeld
iqbal town
andrew laming
oliver paipoonge, ontario
banzsl
against medical advice
grupo fm
digby denham
sun ke
michael scheuer
kate ellis
murillo, ontario