##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# INFINITY

From cppreference.com
< cpp‎ | numeric‎ | math

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

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

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/numeric/math/INFINITY&oldid=62822"