std::numeric_limits<T>::round_error
De es.cppreference.net
static T round_error() throw();
|
(hasta C++11) | |
static constexpr T round_error() noexcept;
|
(desde C++11) | |
Devuelve el error de redondeo máximo posible en ULPs (unidades en el último lugar) según lo define 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 tiene sentido 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) |