December 9th, 2012, 01:09 PM
For some machines, these constants may equate to floating point infinity.
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
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
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.