返回类型的最小的规范化值。
static Type min( ) throw( );
返回值
类型的最小的规范化值。
备注
最小的规范化值的类型为的 int 和FLT_MIN INT_MIN类型的 float。返回值是有意义的,如果 is_bounded 是 true,或者 is_signed 是 false。
示例
// numeric_limits_min.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << "The minimum value for type float is: "
<< numeric_limits<float>::min( )
<< endl;
cout << "The minimum value for type double is: "
<< numeric_limits<double>::min( )
<< endl;
cout << "The minimum value for type int is: "
<< numeric_limits<int>::min( )
<< endl;
cout << "The minimum value for type short int is: "
<< numeric_limits<short int>::min( )
<< endl;
}
要求
标头: <limits>
命名空间: std