std::numeric_limits::digits
Da cppreference.com.
< cpp | types | numeric limits
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
staticconstint digits | (fino al c++11) | |
staticconstexprint digits | (dal C++11) | |
Il valore del std::numeric_limits<T>::digits è il numero di cifre in base-radix che possono essere rappresentati dalla
T
tipo senza cambiamenti. Per i tipi interi, questo è il numero di bit senza contare il bit di segno. Per i tipi a virgola mobile, questo è il numero di cifre nella mantissa.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.
You can help to correct and verify the translation. Click here for instructions.
[modifica]Specializzazioni standard
T | valore di 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 |
bool | 1 |
char | CHAR_BIT-std::numeric_limits<char>::is_signed |
signedchar | CHAR_BIT-1 |
unsignedchar | CHAR_BIT |
wchar_t | CHAR_BIT*sizeof(wchar_t)-std::numeric_limits<wchar_t>::is_signed |
char16_t | CHAR_BIT*sizeof(char16_t) |
char32_t | CHAR_BIT*sizeof(char32_t) |
short | CHAR_BIT*sizeof(short)-1 |
unsignedshort | CHAR_BIT*sizeof(short) |
int | CHAR_BIT*sizeof(int)-1 |
unsignedint | CHAR_BIT*sizeof(int) |
long | CHAR_BIT*sizeof(long)-1 |
unsignedlong | CHAR_BIT*sizeof(long) |
longlong | CHAR_BIT*sizeof(longlong)-1 |
unsignedlonglong | CHAR_BIT*sizeof(long) |
float | FLT_MANT_DIG |
double | DBL_MANT_DIG |
longdouble | LDBL_MANT_DIG |
[modifica]Vedi anche
[statico] | la radice o base intero utilizzato dalla rappresentazione del tipo specificato 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. (pubblico membro statico costante) |
[statico] | oltre la più piccola potenza negativa della radice che è una valida virgola mobile normalizzato valore 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. (pubblico membro statico costante) |
[statico] | maggiore della massima potenza intera della radice che è una valida finita valore a virgola mobile 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. (pubblico membro statico costante) |