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.
Japanese name: 指数部
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.
Japanese name: 指数部
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.
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 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.
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.
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.
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.
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.
1023, with an 11-bit exponent field; single precision uses 127 with 8 bits, and half precision uses 15 with 5 bits.
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.
Exponent field appears in 4 practice questions across 1 topic, including Computer Arithmetic.
As an Amazon Associate I earn from qualifying purchases.
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.