|
|
|
Defined in header <math.h> | ||
#define INFINITY /*implementation defined*/ | (since C99) | |
If the implementation supports floating-point infinities, the macroINFINITY
expands to constant expression of typefloat which evaluates to positive or unsigned infinity.
If the implementation does not support floating-point infinities, the macroINFINITY
expands to a positive value that is guaranteed to overflow afloat at compile time, and the use of this macro generates a compiler warning.
The style used to print an infinity is implementation defined.
Show style used to print an infinity and IEEE format.
Possible output:
INFINITY: inf 7ff0000000000000
(C99) | checks if the given number is infinite (function macro)[edit] |
(C99)(C99) | indicates value too big to be representable (infinity) byfloat,double andlongdouble respectively (macro constant)[edit] |
C++ documentation forINFINITY |