underflow exception
英 /ˈʌndəfləʊ ɪkˈsepʃən/美 /ˈʌndərfloʊ ɪkˈsɛpʃən/
名词短语
下溢异常;算术下溢异常
计算机算术中结果小于最小可表示值的异常情况。underflow exception 的核心含义是计算机算术运算中产生下溢时引发的异常。下溢指运算结果的绝对值小于该数据类型能表示的最小非零正数(或最小规格化数),通常因浮点数指数过小无法表示。常用搭配有 raise an underflow exception、handle underflow exceptions、underflow exception handling 等。
同义词区别
与 underflow exception 相近的词有 underflow error、arithmetic underflow、floating-point underflow。underflow error 更强调错误状态,不一定是异常机制;arithmetic underflow 是下溢现象本身,不涉及异常处理;floating-point underflow 特指浮点运算中的下溢。underflow exception 则强调因下溢而触发的异常事件,常与异常处理机制关联。在需要精确指代异常类型时用 underflow exception;描述现象时用 underflow 或 arithmetic underflow。
用法示例
The program crashed due to an underflow exception in the floating-point calculation.
When the result is smaller than the smallest normalized number, an underflow exception may be raised.
Developers should handle underflow exceptions to prevent unexpected behavior.
The hardware manual specifies that underflow exceptions are masked by default.
In this library, underflow exceptions are converted to warnings rather than errors.