numeric_limits::min_exponent

返回浮点类型可以表示为受限的值的最大负数集成指数,当基数底数的该功能不变。

static const int min_exponent = 0;

返回值

最小集成基于基数的指数可以可用由类型。

备注

成员函数用于浮点类型才有意义的。min_exponent 是类型的 浮动值FLT_MIN_EXP。

示例

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

using namespace std;

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

要求

标头: <limits>

命名空间: std

请参见

参考

strstreambuf Class