std::numpunct

Defined in header <locale> template< class CharT > class numpunct; The facet std::numpunct encapsulates numeric punctuation preferences. Stream I/O operations use std::numpunct through std::num_get and std::num_put for parsing numeric input and formatting numeric output. The numbers that are supported by std::numpunct have the format described below. Here digit represents the radix set specified by the fmtflags argument value, thousands-sep and decimal-point are the r

std::numeric_limits::signaling_NaN

static T signaling_NaN(); (until C++11) static constexpr T signaling_NaN(); (since C++11) Returns the special value "signaling not-a-number", as represented by the floating-point type T. Only meaningful if std::numeric_limits<T>::has_signaling_NaN == true. In IEEE 754, the most common binary representation of floating-point numbers, any value with all bits of the exponent set and at least one bit of the fraction set represents a NaN. It is implementation-defined which values

std::numeric_limits::traps

static const bool traps (until C++11) static constexpr bool traps (since C++11) The value of std::numeric_limits<T>::traps is true for all arithmetic types T that have at least one value that, if used as an argument to an arithmetic operation, will generate a trap. Standard specializations T value of std::numeric_limits<T>::traps /* non-specialized */ false bool false char usually true signed char usually true unsigned char usually true wcha

std::numeric_limits::round_error

static T round_error(); (until C++11) static constexpr T round_error(); (since C++11) Returns the largest possible rounding error in ULPs (units in the last place) as defined by ISO 10967, which can vary from 0.5 (rounding to the nearest digit) to 1.0 (rounding to zero or to infinity). It is only meaningful if std::numeric_limits<T>::is_integer == false. Return value T std::numeric_limits<T>::round_error() /* non-specialized */ T(); bool false char ​0

std::numeric_limits::round_style

static const std::float_round_style round_style (until C++11) static constexpr std::float_round_style round_style (since C++11) The value of std::numeric_limits<T>::round_style identifies the rounding style used by the floating-point type T whenever a value that is not one of the exactly repesentable values of T is stored in an object of that type. Standard specializations T value of std::numeric_limits<T>::round_style /* non-specialized */ std::round_toward_

std::numeric_limits::quiet_NaN

static T quiet_NaN(); (until C++11) static constexpr T quiet_NaN(); (since C++11) Returns the special value "quiet not-a-number", as represented by the floating-point type T. Only meaningful if std::numeric_limits<T>::has_quiet_NaN == true. In IEEE 754, the most common binary representation of floating-point numbers, any value with all bits of the exponent set and at least one bit of the fraction set represents a NaN. It is implementation-defined which values of the fraction

std::numeric_limits::min_exponent10

static const int min_exponent10; (until C++11) static constexpr int min_exponent10; (since C++11) The value of std::numeric_limits<T>::min_exponent10 is the lowest negative number n such that 10n is a valid normalized value of the floating-point type T. Standard specializations T value of std::numeric_limits<T>::min_exponent10 /* non-specialized */ ​0​ bool ​0​ char ​0​ signed char ​0​ unsigned char ​0​ wchar_t ​0​ char16_t ​0​ char3

std::numeric_limits::radix

static const int radix; (until C++11) static constexpr int radix; (since C++11) The value of std::numeric_limits<T>::radix is the base of the number system used in the representation of the type. It is 2 for all binary numeric types, but it may be, for example, 10 for IEEE 754 decimal floating-point types or for third-party binary-coded decimal integers. This constant is meaningful for all specializations. Standard specializations T value of std::numeric_limits<T>

std::numeric_limits::min_exponent

static const int min_exponent; (until C++11) static constexpr int min_exponent; (since C++11) The value of std::numeric_limits<T>::min_exponent is the lowest negative number n such that rn-1, where r is std::numeric_limits<T>::radix is a valid normalized value of the floating-point type T. Standard specializations T value of std::numeric_limits<T>::min_exponent /* non-specialized */ ​0​ bool ​0​ char ​0​ signed char ​0​ unsigned char ​0​

std::numeric_limits::min

static T min(); (until C++11) static constexpr T min(); (since C++11) Returns the minimum finite value representable by the numeric type T. For floating-point types with denormalization, min returns the minimum positive normalized value. Note that this behavior may be unexpected, especially when compared to the behavior of min for integral types. To find the value that has no values less than it, use numeric_limits::lowest. min is only meaningful for bounded types and for unbounde