共用方式為


numeric_limits::min_exponent

傳回浮點型別可以表示為限制值的最大負整數指數,當基底基數引發該功能時。

static const int min_exponent = 0;

傳回值

最小整數基數根據指數能顯示由這個型別。

備註

成員函式的浮點型別才有意義。 min_exponent 型別的值 FLT_MIN_EXP float

範例

// 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;
}
  

需求

標題: <。>

命名空間: std

請參閱

參考

strstreambuf 類別