iOS 常见宏的使用

HUGE_VALF,HUGE_VAL和HUGE_VALL宏展开积极的浮点常量表达式.

Constant Explanation
HUGE_VALF Expands to positive float expression that indicates overflow
HUGE_VAL Expands to positive double expression that indicates overflow, not necessarily representable as a float
HUGE_VALL Expands to positive long double expression that indicates overflow, not necessarily representable as a float or double

常数
Explanation
HUGE_VALF 表示该值无法表示的float类型(无穷大)

HUGE_VAL 表示的值是不是表示的double类型(无穷大)。
中恒是不是一定作为float表示

HUGE_VALL 表示的值无法表示的long double类型(无穷大)。
The不变的是未必表示作为一个float或double

你可能感兴趣的:(iOS 常见宏的使用)