What is Exponent field?

The bits of a floating-point number giving the power of two. To represent negative exponents, the true exponent plus a bias (127 for single precision) is stored.

Field: Computer Arithmetic

Japanese name: 指数部

IEEE 754 single-precision bit layout 31 30 23 22 0 s e f Sign Exponent (8 bits) Fraction (23 bits) 1 bit Add bias 127 Leading 1 omitted (hidden bit) Value = (−1)^s × 1.f × 2^(e − 127) e.g. −6.5 = −110.1₂ = −1.101₂ × 2² 1 10000001 10100000000000000000000 Neg. e = 2 + 127 = 129 “101” followed by 0s In hex: 0xC0D00000
IEEE 754 single-precision bit layout · View in diagrams

How the bias works

The exponent field is an unsigned integer that stores the true exponent plus a fixed bias, so negative exponents need no sign. Single precision (FP32) uses 8 bits with bias 127, double precision (FP64) 11 bits with bias 1023, and half precision (FP16) 5 bits with bias 15. In FP32, stored values 1 to 254 cover true exponents −126 to +127; a stored 130 means 2³. Forgetting to subtract the bias is the most common decoding mistake.

Reserved values

Two exponent patterns are special. All zeros means zero or a subnormal number: the implicit leading 1 is dropped and the exponent is fixed at the minimum normal value (−126 in FP32), letting values shrink gradually toward zero. All ones means infinity when the significand is zero and NaN (not a number) otherwise. Hence the largest normal FP32 exponent field is 254, and FP16 tops out at 65504 because its exponent field stops at 30.

Exponent bits vs. significand bits

Exponent width sets range; significand width sets precision. FP32's 8 exponent bits reach about 3.4 × 10³⁸ with normals down to about 1.2 × 10⁻³⁸, while FP16's 5 bits stop at 65504, which is why FP16 training must watch for overflow. The bfloat16 format keeps FP32's 8-bit exponent with only 7 significand bits, giving the same range as FP32 with far less precision, a trade-off that suits many neural-network workloads.

Why biased rather than two's complement

Placing the biased exponent just below the sign bit and above the significand means that, for positive numbers, a larger value always has a larger bit pattern when read as an integer. Comparisons and sorting can therefore use integer hardware with only sign handling added. A worked example: 10.0 is 1.25 × 2³, so the sign is 0, the exponent field is 130 (binary 10000010) and the fraction is .01, giving the FP32 pattern 0x41200000.

Try it: questions about Exponent field

In IEEE 754 single precision, if the stored exponent field is 130, what is the actual exponent (power of two)?

  1. A3
  2. B130
  3. C2
Show answer and explanation

Answer: A. 3

To allow negative exponents, the exponent field stores the true exponent plus a bias. The single-precision bias is 127, so the actual exponent is 130 − 127 = 3, multiplying the significand by 2³ = 8. A stored 127 means 2⁰ = 1, and 1 means 2⁻¹²⁶. Stored values 0 and all ones (255) are reserved for subnormals and for infinity and NaN. Taking 130 as the exponent forgets the bias.

In IEEE 754 single precision, what do bit patterns with an all-ones exponent field (255) represent?

  1. AThe largest normal number, regardless of the significand
  2. BInfinity if the significand is zero, NaN if it is nonzero
  3. CZero, regardless of the significand
Show answer and explanation

Answer: B. Infinity if the significand is zero, NaN if it is nonzero

The maximum exponent value (all ones) is reserved for special values. With an all-zero significand it represents positive or negative infinity according to the sign bit; with a nonzero significand it represents NaN. NaNs are further subdivided by significand value, for instance into kinds that do or do not signal exceptions. The largest normal number has an exponent field of 254, and zero is the pattern with exponent and significand all zero. An exponent field of 0 represents zero and subnormals.

FAQ

Why is the exponent biased in IEEE 754?

A bias lets the field be stored as an unsigned number while still representing negative exponents, and it makes positive floats order the same way as their bit patterns read as integers.

What is the exponent bias for double precision?

1023, with an 11-bit exponent field; single precision uses 127 with 8 bits, and half precision uses 15 with 5 bits.

What does an exponent field of all zeros mean?

It encodes zero when the significand is zero and a subnormal number otherwise, with no implicit leading 1 and the exponent fixed at the minimum normal value.

Questions that mention Exponent field (2)

Exponent field appears in 4 practice questions across 1 topic, including Computer Arithmetic.

  1. Which three parts make up an IEEE 754 floating-point number?
  2. What is the largest finite value representable in FP16 (1 sign, 5 exponent bits with bias 15, 10 significand bits)?

Books on Computer Arithmetic Ad

As an Amazon Associate I earn from qualifying purchases.

Semiconductor, Electronics and Computing Calculators

This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.

Back to the glossary