◐ Shell
clean mode source ↗

std::numeric_limits::digits - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

static const int digits

(até C++11)

static constexpr int digits

(desde C++11)

O valor de std::numeric_limits<T>::digits é o número de dígitos de base radix-que podem ser representados pela T tipo sem alterações. Para tipos inteiros, este é o número de bits não contando o bit de sinal. Por tipos de ponto flutuante, este é o número de dígitos na 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.

Especializações padrão

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
bool 1
char CHAR_BIT - std::numeric_limits<char>::is_signed
signed char CHAR_BIT-1
unsigned char 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
unsigned short CHAR_BIT*sizeof(short)
int CHAR_BIT*sizeof(int)-1
unsigned int CHAR_BIT*sizeof(int)
long CHAR_BIT*sizeof(long)-1
unsigned long CHAR_BIT*sizeof(long)
long long CHAR_BIT*sizeof(long long)-1
unsigned long long CHAR_BIT*sizeof(long)
float FLT_MANT_DIG
double DBL_MANT_DIG
long double LDBL_MANT_DIG

Veja também

[estática]

a raiz ou base inteiro usado pela representação do tipo de 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.


(membro estático público constante) [edit]

[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) [edit]

[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) [edit]