HUGE_VAL、_HUGEHUGE_VAL, _HUGE

语法Syntax


#include <math.h>  

备注Remarks

HUGE_VAL 是可表示的最大双精度值。HUGE_VAL is the largest representable double value. 在出现错误时,该值将由许多运行时数学函数返回。This value is returned by many run-time math functions when an error occurs. 对于某些函数,将返回 -HUGE_VALFor some functions, -HUGE_VAL is returned. HUGE_VAL 定义为 _HUGE,而运行时数学函数返回 HUGE_VALHUGE_VAL is defined as _HUGE, but run-time math functions return HUGE_VAL. 为确保一致性,还应在代码中使用 HUGE_VALYou should also use HUGE_VAL in your code for consistency.

请参阅See Also

全局常量Global Constants