What is Subnormal number?
A floating-point number whose exponent field is all zeros, without an implied leading 1, representing values smaller than the smallest normal number. It fills the gap to zero gradually (gradual underflow), so x − y = 0 implies x = y.
Field: Computer Arithmetic
Japanese name: 非正規化数
How values are represented
A normal number is represented as 1.f × 2^(exponent field − bias), whereas a subnormal, whose exponent field is 0, is 0.f × 2^(1 − bias). In single precision the smallest normal number is 2⁻¹²⁶ (about 1.18 × 10⁻³⁸), and subnormals fill the range below it in equal steps of 2⁻¹⁴⁹ (about 1.4 × 10⁻⁴⁵). The smallest double-precision subnormal is about 4.9 × 10⁻³²⁴. The more leading zeros there are, the fewer significant bits remain, so relative precision falls as values approach zero. An older name is denormal number.
What gradual underflow achieves
Without subnormals, any result smaller than the smallest normal number would drop straight to zero, leaving a large gap around zero. The difference of two distinct numbers could then become zero, breaking programs that conclude x = y from x − y = 0 or that divide by such a difference. Subnormals fill this gap, so the error caused by underflow is limited to about the smallest spacing rather than the size of the gap. This is one of the basic ideas of IEEE 754.
The speed problem and FTZ
Some processors cannot handle subnormal inputs or results on their fast hardware path and fall back to microcode or similar mechanisms, slowing down considerably. The problem tends to appear in calculations where a signal keeps decaying towards zero, such as audio filters with feedback. Settings are therefore provided that flush results to zero (FTZ, flush-to-zero) or treat inputs as zero (DAZ, denormals-are-zero). The term has nothing to do with denormalization in database design.
Try it: questions about Subnormal number
- ARepresenting values above the largest normal number to prevent overflow
- BDetecting calculation errors and replacing the results with NaN
- CFilling the gap between normal numbers and zero for gradual underflow
Show answer and explanation
Answer: C. Filling the gap between normal numbers and zero for gradual underflow
With only normal numbers, there would be a large gap between the smallest normal number (about 1.18 × 10⁻³⁸ in single precision) and zero, and anything smaller would jump straight to 0. Subnormals, with an all-zero exponent and no implied leading 1, fill this gap with evenly spaced tiny values (gradual underflow), preserving the property that x − y = 0 implies x = y. Large values are represented by infinity, not subnormals, and error detection is unrelated.
- AFlushing subnormal results to zero (FTZ) or treating subnormal inputs as zero (DAZ)
- BAutomatically converting all computation from double to single precision
- CStopping the program whenever a subnormal is found
Show answer and explanation
Answer: A. Flushing subnormal results to zero (FTZ) or treating subnormal inputs as zero (DAZ)
Subnormals are a special form without an implied leading 1, so some processors cannot handle them in fast hardware and fall back to microcode or similar, which can slow them down considerably. Where values extremely close to zero need not be handled precisely, as in audio processing or AI, FTZ or DAZ settings treat subnormals as zero to keep speed. The cost is lost precision near zero and loss of gradual underflow. It neither changes precision across the board nor stops the program.
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