在线文档教程
C++
数字 | Numerics

HUGE_VALF

巨量[医]VALF,巨大[医]瓦尔,巨大[医]沃尔

Defined in header
#define HUGE_VALF /*implementation defined*/(since C++11)
#define HUGE_VAL /*implementation defined*/
#define HUGE_VALL /*implementation defined*/(since C++11)

HUGE_VALF,,,HUGE_VALHUGE_VALL宏扩展为正浮点常量表达式,该表达式与浮点函数和运算符在溢出时返回的值相等,请参见math_errhandling29%。

ConstantExplanation
HUGE_VALFExpands to positive float expression that indicates overflow
HUGE_VALExpands to positive double expression that indicates overflow, not necessarily representable as a float
HUGE_VALLExpands to positive long double expression that indicates overflow, not necessarily representable as a float or double

在支持浮点无穷大的实现中,这些宏总是扩展到float,,,double,和long double分别。

另见

INFINITY (C++11)evaluates to positive infinity or the value guaranteed to overflow a float (macro constant)

C文件[医]瓦尔

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/数值/数学/巨型[医]瓦尔