std::numeric_limits::radix
De cppreference.com
< cpp | types | numeric limits
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
static const int radix |
(hasta C++11) | |
static constexpr int radix |
(desde C++11) | |
El valor de std::numeric_limits<T>::radix es la base del sistema de numeración utilizado en la representación del tipo. Es 2 para todos los tipos numéricos binarios, pero puede ser, por ejemplo, 10 para IEEE 754 decimales de punto flotante tipo o para enteros binary-coded decimal de terceros. Esta constante es significativa para todas las especialidades .
Original:
The value of std::numeric_limits<T>::radix is the base of the number system used in the representation of the type. It is 2 for all binary numeric types, but it may be, for example, 10 for IEEE 754 decimales de punto flotante tipo or for third-party binary-coded decimal integers. This constant is meaningful for all specializations.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] Especializaciones estándar
T
|
valor de std::numeric_limits<T>::radix
Original: value of std::numeric_limits<T>::radix 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 |
bool | 2 |
char | 2 |
signed char | 2 |
unsigned char | 2 |
wchar_t | 2 |
char16_t | 2 |
char32_t | 2 |
short | 2 |
unsigned short | 2 |
int | 2 |
unsigned int | 2 |
long | 2 |
unsigned long | 2 |
long long | 2 |
unsigned long long | 2 |
float | FLT_RADIX |
double | FLT_RADIX |
long double | FLT_RADIX |
[editar] Ver también
[estático] |
número de dígitos radix que pueden ser representadas sin cambio Original: number of radix digits that can be represented without change 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) |
[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) |
[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) |