INFINITY

Header: <cmath>

If the implementation supports floating-point infinities, the macro INFINITY expands to constant expression of type float which evaluates to positive or unsigned infinity.

# Declarations

#define INFINITY /*implementation defined*/

(since C++11)

# See also