Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


Defines the template class numeric_limits and two enumerations concerning floating-point representations and rounding.

For a list of all members of this header, see <limits> Members.

#include <limits>

Explicit specializations of the numeric_limits class describe many properties of the fundamental types, including the character, integer, and floating-point types and bool that are implementation defined rather than fixed by the rules of the C++ language. Properties described in <limits> include accuracy, minimum and maximum sized representations, rounding, and signaling type errors.

© 2015 Microsoft