std::numeric_limits::digits
De 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. |
staticconstint digits | (avant C++11) | |
staticconstexprint digits | (depuis C++11) | |
La valeur de std::numeric_limits<T>::digits est le nombre de chiffres en base-radix qui peuvent être représentés par la
T
type sans changement. Pour les types entiers, il s'agit du nombre de bits sans compter le bit de signe. Pour types à virgule flottante, c'est le nombre de chiffres dans la mantisse .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.
[modifier]Spécialisations standard
T | valeur 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 |
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 |
[modifier]Voir aussi
[ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | la base ou la base utilisée par nombre entier de la représentation du type donné 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 membre statique publique) |
[ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | un de plus que la plus petite puissance négative de la racine qui est valide normalisé valeur à virgule flottante 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 membre statique publique) |
[ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | un de plus que la plus grande puissance entière de la racine qui est valide finie valeur à virgule flottante 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 membre statique publique) |