numeric_limits::max_exponent
Sayı tabanı temel o kuvvetine yükseltilmiş kayan nokta türü sonlu bir değeri temsil eder, en büyük pozitif ayrılmaz üs döndürür.
static const int max_exponent = 0;
Dönüş Değeri
En büyük tam sayı taban alarak üs gösterilebilir türüne göre.
Notlar
Üye işlevi dönüş kayan nokta türleri için çok anlamlıdır.max_exponent flt_max_exp için türü değeri float.
Örnek
// 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;
}
Gereksinimler
Başlık: <limits>
Namespace: std