Global Information Lookup Global Information

Exponent bias information


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, also called a biased exponent.[1] 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 stored as an unsigned value which is suitable for comparison, and when being interpreted it is converted into an exponent within a signed range by subtracting the bias.

By arranging the fields such that the sign bit takes the most significant bit position, the biased exponent takes the middle position, then the significand will be the least significant bits and the resulting value will be ordered properly. This is the case whether or not it is interpreted as a floating-point or integer value. The purpose of this is to enable high speed comparisons between floating-point numbers using fixed-point hardware.

If there are bits in the exponent, the bias is typically set as .[2]

Therefore, the possible integer values that the biased exponent can express lie in the range . To understand this range, with bits in the exponent, the possible unsigned integers lie in the range . However, the strings containing all zeros and all ones are reserved for special values, so the expressible integers lie in the range . It follows that:

  • The maximum biased value is .
  • The minimum biased value is .

When interpreting the floating-point number, the bias is subtracted to retrieve the actual exponent.

  • For a half-precision number, the exponent is stored in the range 1 .. 30 (0 and 31 have special meanings), and is interpreted by subtracting the bias for an 5-bit exponent (15) to get an exponent value in the range −14 .. +15.
  • For a single-precision number, the exponent is stored in the range 1 .. 254 (0 and 255 have special meanings), and is interpreted by subtracting the bias for an 8-bit exponent (127) to get an exponent value in the range −126 .. +127.
  • For a double-precision number, the exponent is stored in the range 1 .. 2046 (0 and 2047 have special meanings), and is interpreted by subtracting the bias for an 11-bit exponent (1023) to get an exponent value in the range −1022 .. +1023.
  • For a quad-precision number, the exponent is stored in the range 1 .. 32766 (0 and 32767 have special meanings), and is interpreted by subtracting the bias for a 15-bit exponent (16383) to get an exponent value in the range −16382 .. +16383.
  1. ^ Cite error: The named reference Gosling_1980 was invoked but never defined (see the help page).
  2. ^ Cite error: The named reference Bryant_2010 was invoked but never defined (see the help page).

and 17 Related for: Exponent bias information

Request time (Page generated in 0.8535 seconds.)

Exponent bias

Last Update:

exponent is biased in the engineering sense of the word – the value stored is offset from the actual value by the exponent bias, also called a biased...

Word Count : 758

Minifloat

Last Update:

patterns for infinity and NaN. Normalized numbers are stored with a biased exponent. The new revision of the standard, IEEE 754-2008, has 16-bit binary...

Word Count : 1852

List of exponential topics

Last Update:

e-folding Elimination half-life Error exponent Euler's formula Euler's identity e (mathematical constant) Exponent Exponent bias Exponential (disambiguation) Exponential...

Word Count : 281

Methods of computing square roots

Last Update:

justify the steps in this program is to assume b {\displaystyle b} is the exponent bias and n {\displaystyle n} is the number of explicitly stored bits in the...

Word Count : 11771

Hurst exponent

Last Update:

The Hurst exponent is used as a measure of long-term memory of time series. It relates to the autocorrelations of the time series, and the rate at which...

Word Count : 2999

Signed number representations

Last Update:

excess-127 field. The double-precision (64-bit) exponent field is an 11-bit excess-1023 field; see exponent bias. It also had use for binary-coded decimal numbers...

Word Count : 2346

Fast inverse square root

Last Update:

B {\textstyle E_{x}=e_{x}+B} is the "biased exponent", where B = 127 {\displaystyle B=127} is the "exponent bias" (8 bits) M x = m x × L {\textstyle M_{x}=m_{x}\times...

Word Count : 4544

Microsoft Binary Format

Last Update:

which help mitigate problems caused by underflow; and a better balanced exponent bias, which could help avoid overflow and underflow when taking the reciprocal...

Word Count : 3402

Offset binary

Last Update:

b_{i}\right)-k\right]} Signed number representations Binary number Excess-3 Excess-128 Exponent bias Excess-Gray code Ones' complement Binary offset carrier Chang, Angela;...

Word Count : 1636

IEEE 754

Last Update:

smallest representable exponent allowing the value to be represented exactly. Further, the exponent is not represented directly, but a bias is added so that...

Word Count : 7402

Power law

Last Update:

approaches should be avoided as they can all lead to highly biased estimates of the scaling exponent. For real-valued, independent and identically distributed...

Word Count : 7906

Body mass index

Last Update:

average height, while the exponent of 2.5 is a compromise between the exponent of 2 in the traditional formula for BMI and the exponent of 3 that would be expected...

Word Count : 6658

Exponential growth

Last Update:

exponential function of time, that is, the variable representing time is the exponent (in contrast to other types of growth, such as quadratic growth). Exponential...

Word Count : 3107

Political correctness

Last Update:

liberalism – by levelling the charge of "political correctness" against its exponents – they could discredit the whole political project. — Will Hutton, "Words...

Word Count : 6119

Extended precision

Last Update:

numbers is 2047 (an 11 bit value). Adding in a bias to account for negative exponents means that the exponent field must be at least 12 bits wide. Combining...

Word Count : 4025

Characteristic

Last Update:

refer to: Characteristic (biased exponent), an ambiguous term formerly used by some authors to specify some type of exponent of a floating point number...

Word Count : 258

Subnormal number

Last Update:

subnormal numbers are encoded with a biased exponent of 0, but are interpreted with the value of the smallest allowed exponent, which is one greater (i.e., as...

Word Count : 1915

PDF Search Engine © AllGlobal.net