numeric_limits::max_exponent10

返回浮点类型可以表示为受限的值的最大正值集成指数,当基础十引发对该功能不变。

static const int max_exponent10 = 0;

返回值

最大集成foundation 10指数可以可用由类型。

备注

函数返回的成员为浮点类型才有意义的。max_exponent 是类型的 浮动值FLT_MAX_10。

示例

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

using namespace std;

int main( )
{
   cout << "The maximum base 10 exponent for type float is:  "
           << numeric_limits<float>::max_exponent10
           << endl;
   cout << "The maximum base 10 exponent for type double is:  "
           << numeric_limits<double>::max_exponent10
           << endl;
   cout << "The maximum base 10 exponent for type long double is:  "
           << numeric_limits<long double>::max_exponent10
           << endl;
}
  

要求

标头: <limits>

命名空间: std

请参见

参考

strstreambuf Class