std::numeric_limits<T>:: round_error
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
(
)
;
|
(bis C++11) | |
|
static
constexpr
T round_error
(
)
noexcept
;
|
(seit C++11) | |
Gibt den größtmöglichen Rundungsfehler in ULPs (Units in the Last Place) zurück, wie von ISO 10967 definiert, der von 0.5 (Rundung zur nächsten Ziffer) bis zu 1.0 (Rundung gegen Null oder gegen Unendlich) variieren kann. Dies ist nur aussagekräftig, wenn std:: numeric_limits < T > :: is_integer == false .
Rückgabewert
T
|
std:: numeric_limits < T > :: round_error ( ) |
| /* nicht spezialisiert */ | T ( ) |
| bool | false |
| char | 0 |
| signed char | 0 |
| unsigned char | 0 |
| wchar_t | 0 |
| char8_t (seit C++20) | 0 |
| char16_t (seit C++11) | 0 |
| char32_t (seit C++11) | 0 |
| short | 0 |
| unsigned short | 0 |
| int | 0 |
| unsigned int | 0 |
| long | 0 |
| unsigned long | 0 |
| long long (seit C++11) | 0 |
| unsigned long long (seit C++11) | 0 |
| float | 0.5F |
| double | 0.5 |
| long double | 0.5L |
Siehe auch
|
[static]
|
identifiziert den Rundungsstil, der vom Typ verwendet wird
(öffentliche statische Member-Konstante) |