Namespaces
Variants
Views
Actions

INFINITY

From cppreference.com
< cpp‎ | numeric‎ | math
 
 
 
Common mathematical functions
Functions
Basic operations
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Exponential functions
(C++11)
(C++11)
(C++11)
(C++11)
Power functions
(C++11)
(C++11)
Trigonometric and hyperbolic functions
(C++11)
(C++11)
(C++11)
Error and gamma functions
(C++11)
(C++11)
(C++11)
(C++11)
Nearest integer floating point operations
(C++11)(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Floating point manipulation functions
(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)
(C++11)
Classification/Comparison
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Macro constants
INFINITY
(C++11)
(C++11)
(C++11)(C++11)(C++11)(C++11)(C++11)
 
Defined in header <cmath>
#define INFINITY /*implementation defined*/
(since C++11)

The macro INFINITY expands to constant expression of type float which evaluates to positive or unsigned infinity, if supported by implementation, or to a positive value that is guaranteed to overflow a float at compile time.

[edit] See also

[static]
returns the positive infinity value of the given floating-point type
(public static member function of std::numeric_limits) [edit]
(C++11)
checks if the given number is infinite
(function) [edit]