
December 9th, 2012, 12:09 PM
|
 |
Contributed User
|
|
|
|
For some machines, these constants may equate to floating point infinity.
Quote: | Originally Posted by c99_Draft
3 The macro HUGE_VAL
expands to a positive double constant expression, not necessarily representable as a float. The macros
HUGE_VALF
HUGE_VALL
are respectively float and long double analogs of HUGE_VAL.179)
4 The macro INFINITY
expands to a constant expression of type float representing positive or unsigned
infinity, if available; else to a positive constant of type float that overflows at
translation time.180)
179) HUGE_VAL, HUGE_VALF, and HUGE_VALL can be positive infinities in an implementation that supports infinities.
|
But if your data type is an int, there is no such thing as infinity.
|