|
|
Basic types | |||||||||||||||||||||
Fixed width integer types(C++11) | |||||||||||||||||||||
Fixed width floating-point types(C++23) | |||||||||||||||||||||
| |||||||||||||||||||||
Numeric limits | |||||||||||||||||||||
C numeric limits interface | |||||||||||||||||||||
Runtime type information | |||||||||||||||||||||
|
Static constants | ||||
(C++11) | ||||
numeric_limits::radix | ||||
Static member functions | ||||
(C++11) | ||||
Helper types | ||||
staticconstint radix; | (until C++11) | |
staticconstexprint radix; | (since C++11) | |
The value ofstd::numeric_limits<T>::radix is the base of the number system used in the representation of the type. It is2 for all binary numeric types, but it may be, for example,10 for IEEE 754decimal floating-point types or for third-partybinary-coded decimal integers. This constant is meaningful for all specializations.
T | value ofstd::numeric_limits<T>::radix |
/* non-specialized */ | 0 |
bool | 2 |
char | 2 |
signedchar | 2 |
unsignedchar | 2 |
wchar_t | 2 |
char8_t(since C++20) | 2 |
char16_t(since C++11) | 2 |
char32_t(since C++11) | 2 |
short | 2 |
unsignedshort | 2 |
int | 2 |
unsignedint | 2 |
long | 2 |
unsignedlong | 2 |
longlong(since C++11) | 2 |
unsignedlonglong(since C++11) | 2 |
float | FLT_RADIX |
double | FLT_RADIX |
longdouble | FLT_RADIX |
[static] | number ofradix digits that can be represented without change(public static member constant)[edit] |
[static] | one more than the smallest negative power of the radix that is a valid normalized floating-point value (public static member constant)[edit] |
[static] | one more than the largest integer power of the radix that is a valid finite floating-point value (public static member constant)[edit] |