头文件:
#include
模板类别:
static T denorm_min() throw();
static constexpr T denorm_min() noexcept;
句法:
std::numeric_limits::denorm_min()
参数:函数std :: numeric_limits
返回值:函数std :: numeric_limits
下面是演示C++中std :: numeric_limits
程序:
// C++ program to illustrate
// std::numeric_limits::denorm_min()
#include
#include
using namespace std;
// Driver Code
int main()
{
// Print the denormalised value for
// different data types
cout << "For float: "
<< numeric_limits::denorm_min()
<< endl;
cout << "For int: "
<< numeric_limits::denorm_min()
<< endl;
cout << "For double: "
<< numeric_limits::denorm_min()
<< endl;
cout << "For long int: "
<< numeric_limits::denorm_min()
<< endl;
cout << "For long double: "
<< numeric_limits::denorm_min()
<< endl;
return 0;
}
输出:
For float: 1.4013e-45
For int: 0
For double: 4.94066e-324
For long int: 0
For long double: 3.6452e-4951
参考: https : //en.cppreference.com/w/cpp/types/numeric_limits/denorm_min
要从最佳影片策划和实践问题去学习,检查了C++基础课程为基础,以先进的C++和C++ STL课程基础加上STL。要完成从学习语言到DS Algo等的更多准备工作,请参阅“完整面试准备课程” 。