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
(
)
;
|
(hasta C++11) | |
|
static
constexpr
T round_error
(
)
noexcept
;
|
(desde C++11) | |
Retorna el mayor error de redondeo posible en ULPs (unidades en el último lugar) según la definición ISO 10967, que puede variar desde 0.5 (redondeo al dígito más cercano) hasta 1.0 (redondeo a cero o a infinito). Solo es significativo si std:: numeric_limits < T > :: is_integer == false .
Valor de retorno
T
|
std:: numeric_limits < T > :: round_error ( ) |
| /* no especializado */ | T ( ) |
| bool | false |
| char | 0 |
| signed char | 0 |
| unsigned char | 0 |
| wchar_t | 0 |
| char8_t (desde C++20) | 0 |
| char16_t (desde C++11) | 0 |
| char32_t (desde C++11) | 0 |
| short | 0 |
| unsigned short | 0 |
| int | 0 |
| unsigned int | 0 |
| long | 0 |
| unsigned long | 0 |
| long long (desde C++11) | 0 |
| unsigned long long (desde C++11) | 0 |
| float | 0.5F |
| double | 0.5 |
| long double | 0.5L |
Véase también
|
[static]
|
identifica el estilo de redondeo utilizado por el tipo
(constante de miembro público estático) |