Espacios de nombres
Variantes

std::numeric_limits::round_error

De cppreference.com
 
 
Biblioteca de servicios
 
Apoyo de tipos
Tipos básicos
Tipos fundamentales
Tipos enteros de anchura fija (C++11)
Límites numéricos
Interfaz de C de límites numéricos
Información de tipo
en tiempo de ejecución
Rasgos de tipos
Categorías de tipos
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Propiedades de tipos
(C++11)
(C++11)
(C++14)
(C++11)
(C++11)(hasta C++20)
(C++11)(en desuso en C++20)
(C++11)
Constantes de rasgos de tipos
Metafunciones
(C++17)
Contexto de evaluación constante
Operaciones soportadas
Relaciones y consultas de propiedades
Modificaciones de tipos
(C++11)(C++11)(C++11)
Transformaciones de tipos
(C++11)
(C++11)
(C++17)
(C++11)(hasta C++20)(C++17)
 
std::numeric_limits
 
<tbody> </tbody>
static T round_error()
(hasta C++11)
static constexpr T round_error()
(desde C++11)
Devuelve el mayor error de redondeo posible en ULPs (unidades en el último lugar) como se define en ISO 10967, que puede variar desde 0,5 (redondeo al más cercano dígitos) a 1,0 (redondeo a cero o infinito). Esto sólo tiene sentido si std::numeric_limits<T>::is_integer == false .
Original:
Returns the largest possible rounding error in ULPs (units in the last place) as defined by ISO 10967, which can vary from 0.5 (rounding to the nearest digit) to 1.0 (rounding to zero or to infinity). It is only meaningful if std::numeric_limits<T>::is_integer == false.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valor de retorno

T std::numeric_limits<T>::round_error()
/* non-specialized */ T();
bool false
char 0
signed char 0
unsigned char 0
wchar_t 0
char16_t 0
char32_t 0
short 0
unsigned short 0
int 0
unsigned int 0
long 0
unsigned long 0
long long 0
unsigned long long 0
float 0.5F
double 0.5
long double 0.5L

Excepciones

Especificación noexcept:  
<tbody> </tbody>
noexcept
  (desde C++11)

Ver también

[estático]
identifica el estilo de redondeo utilizado por el tipo
Original:
identifies the rounding style used by the type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(constante miembro pública estática) [editar]