Compartilhar via


numeric_limits::max_exponent

Retorna o expoente integral positivo máximo que o tipo de ponto flutuante pode representar como um valor finito quando uma base da raiz é elevada à potência.

static const int max_exponent = 0;

Valor de retorno

O expoente raiz- base integral máximo representable por tipo.

Comentários

O retorno da função de membro é significante somente para tipos de ponto flutuante. max_exponent é o valor FLT_MAX_EXP para o tipo float.

Exemplo

// numeric_limits_max_exponent.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>

using namespace std;

int main( )
{
   cout << "The maximum radix-based exponent for type float is:  "
        << numeric_limits<float>::max_exponent
        << endl;
   cout << "The maximum radix-based exponent for type double is:  "
        << numeric_limits<double>::max_exponent
        << endl;
   cout << "The maximum radix-based exponent for type long double is:  "
        << numeric_limits<long double>::max_exponent
        << endl;
}
  

Requisitos

limites <deCabeçalho: >

Namespace: std

Consulte também

Referência

Classe strstreambuf