std::numeric_limits::radix
Da cppreference.com
< cpp | types | numeric limits
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
static const int radix |
(até C++11) | |
static constexpr int radix |
(desde C++11) | |
O valor de std::numeric_limits<T>::radix é a base do sistema de numeração utilizado na representação do tipo. É 2 para todos os tipos binários numéricos, mas ele pode ser, por exemplo, 10 para 754 IEEE decimais tipos de ponto flutuante ou para inteiros de terceiros código binário decimal. Esta constante é significativo para todas as especializações.
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 decimais tipos de ponto flutuante or for third-party código binário 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] Especializações padrão
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] Veja também
[estática] |
número de dígitos radix que podem ser representadas sem alterações 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. (membro estático público constante) |
[estática] |
mais um do que o menor poder negativo do radix que é um valor válido de ponto flutuante normalizado 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. (membro estático público constante) |
[estática] |
um a mais que o maior poder inteiro da raiz que é um valor válido de ponto flutuante finita 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. (membro estático público constante) |