浮点值的截断Truncation of Floating-Point Values

ANSI 3.2.1.4 在某个浮点数转换为较小的浮点数时截断或舍入的方向ANSI 3.2.1.4 The direction of truncation or rounding when a floating-point number is converted to a narrower floating-point number

当出现下溢时,浮点变量的值将向下舍入为 0。When an underflow occurs, the value of a floating-point variable is rounded down to zero. 溢出可能导致运行时错误,也可能生成不可预知的值,具体取决于指定的优化。An overflow may cause a run-time error or it may produce an unpredictable value, depending on the optimizations specified.

请参阅See Also

浮点数学Floating-Point Math