|
|
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) | ||||
Static member functions | ||||
(C++11) | ||||
numeric_limits::round_error | ||||
Helper types | ||||
static T round_error()throw(); | (until C++11) | |
staticconstexpr T round_error()noexcept; | (since C++11) | |
Returns the largest possible rounding error in ULPs (units in the last place) as defined by ISO 10967, which can vary from0.5 (rounding to the nearest digit) to1.0 (rounding to zero or to infinity). It is only meaningful ifstd::numeric_limits<T>::is_integer==false.
T | std::numeric_limits<T>::round_error() |
/* non-specialized */ | T() |
bool | false |
char | 0 |
signedchar | 0 |
unsignedchar | 0 |
wchar_t | 0 |
char8_t(since C++20) | 0 |
char16_t(since C++11) | 0 |
char32_t(since C++11) | 0 |
short | 0 |
unsignedshort | 0 |
int | 0 |
unsignedint | 0 |
long | 0 |
unsignedlong | 0 |
longlong(since C++11) | 0 |
unsignedlonglong(since C++11) | 0 |
float | 0.5F |
double | 0.5 |
longdouble | 0.5L |
[static] | identifies the rounding style used by the type (public static member constant)[edit] |