Espacios de nombres
Variantes
Acciones

std::numeric_limits::digits

De cppreference.com
 
 
Biblioteca de servicios
 
Apoyo de tipos
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
Transformaciones de tipos
(C++11)
(C++11)
(C++17)
(C++11)(hasta C++20)(C++17)
 
 
static const int digits
(hasta C++11)
static constexpr int digits
(desde C++11)
El valor de std::numeric_limits<T>::digits es el número de dígitos en base-radix que pueden ser representados por la T tipo sin cambio. Para los tipos de enteros, este es el número de bits sin contar el bit de signo. Para tipos de punto flotante, este es el número de dígitos en la mantisa .
Original:
The value of std::numeric_limits<T>::digits is the number of digits in base-radix that can be represented by the type T without change. For integer types, this is the number of bits not counting the sign bit. For floating-point types, this is the number of digits in the mantissa.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Especializaciones estándar

T
valor de std::numeric_limits<T>::digits
Original:
value of std::numeric_limits<T>::digits
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
/* non-specialized */0
bool1
charCHAR_BIT - std::numeric_limits<char>::is_signed
signed charCHAR_BIT-1
unsigned charCHAR_BIT
wchar_tCHAR_BIT*sizeof(wchar_t) - std::numeric_limits<wchar_t>::is_signed
char16_tCHAR_BIT*sizeof(char16_t)
char32_tCHAR_BIT*sizeof(char32_t)
shortCHAR_BIT*sizeof(short)-1
unsigned shortCHAR_BIT*sizeof(short)
intCHAR_BIT*sizeof(int)-1
unsigned intCHAR_BIT*sizeof(int)
longCHAR_BIT*sizeof(long)-1
unsigned longCHAR_BIT*sizeof(long)
long longCHAR_BIT*sizeof(long long)-1
unsigned long longCHAR_BIT*sizeof(long)
floatFLT_MANT_DIG
doubleDBL_MANT_DIG
long doubleLDBL_MANT_DIG

[editar] Ver también

[estático]
la raíz o base entero utilizado por la representación del tipo dado
Original:
the radix or integer base used by the representation of the given 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]
[estático]
más que la menor potencia negativa de la base de que es un válido punto flotante normalizado valor uno
Original:
one more than the smallest negative power of the radix that is a valid normalized floating-point value
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]
[estático]
mayor que la máxima potencia entera de la base de que es válida finito valor de punto flotante uno
Original:
one more than the largest integer power of the radix that is a valid finite floating-point value
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]