渐进下溢如何用二进制表示

How gradual underflow is represented in binary

我想知道如何用二进制表示下溢数据。在浮点数的情况下,我们有 32 位,它们都有自己的含义,我们在哪里存储尾数不再规范化的信息?

来自Wikipedia entry on IEEE-754

The number representations described above are called normalized, meaning that the implicit leading binary digit is a 1. To reduce the loss of precision when an underflow occurs, IEEE 754 includes the ability to represent fractions smaller than are possible in the normalized representation, by making the implicit leading digit a 0. Such numbers are called denormal. They don't include as many significant digits as a normalized number, but they enable a gradual loss of precision when the result of an arithmetic operation is not exactly zero but is too close to zero to be represented by a normalized number.

A denormal number is represented with a biased exponent of all 0 bits, which represents an exponent of −126 in single precision (not −127), or −1022 in double precision (not −1023).

所以有一个特殊的指数值(全零位)表示尾数没有隐式前导1,因此应该被解释为非规范化数字。