Numerical Limits (C++)
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Numerical Limits (C++).
The two standard include files, LIMITS.H and FLOAT.H, define the numerical limits, or minimum and maximum values that a variable of a given type can hold. These minimums and maximums are guaranteed to be portable to any C++ compiler that uses the same data representation as ANSI C. The LIMITS.H include file defines the numerical limits for integral types, and FLOAT.H defines the numerical limits for floating types.
Show: