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
(
)
;
|
(jusqu'à C++11) | |
|
static
constexpr
T round_error
(
)
noexcept
;
|
(depuis C++11) | |
Retourne la plus grande erreur d'arrondi possible en ULPs (unités de la dernière position) telle que définie par l'ISO 10967, qui peut varier de 0.5 (arrondi au chiffre le plus proche) à 1.0 (arrondi vers zéro ou vers l'infini). Cela n'a de sens que si std:: numeric_limits < T > :: is_integer == false .
Valeur de retour
T
|
std:: numeric_limits < T > :: round_error ( ) |
| /* non-spécialisé */ | T ( ) |
| bool | false |
| char | 0 |
| signed char | 0 |
| unsigned char | 0 |
| wchar_t | 0 |
| char8_t (depuis C++20) | 0 |
| char16_t (depuis C++11) | 0 |
| char32_t (depuis C++11) | 0 |
| short | 0 |
| unsigned short | 0 |
| int | 0 |
| unsigned int | 0 |
| long | 0 |
| unsigned long | 0 |
| long long (depuis C++11) | 0 |
| unsigned long long (depuis C++11) | 0 |
| float | 0.5F |
| double | 0.5 |
| long double | 0.5L |
Voir aussi
|
[static]
|
identifie le style d'arrondi utilisé par le type
(constante de membre public static) |