proton_mass = object["proton-mass"].GetDouble();if(notisnormal(proton_mass)orproton_mass <0) {throwstd::invalid_argument(std::string(__FILE__"(") +std::to_string(__LINE__) +"): "+"Invalid proton_mass: "+std::to_string(proton_mass)//...这里部分代码省略... 开发者ID:nasailja...
std::isnormal 定义于头文件<cmath> boolisnormal(floatarg); (1)(C++11 起) boolisnormal(doublearg); (2)(C++11 起) boolisnormal(longdoublearg); (3)(C++11 起) boolisnormal(IntegralType arg); (4)(C++11 起) 1-3)确定给定的浮点数arg是否为正规值,即不是零、非正规、无穷大或 NaN 。
std::isnormal Defined in header <cmath> bool isnormal( float arg ); (1) (since C++11) bool isnormal( double arg ); (2) (since C++11) bool isnormal( long double arg ); (3) (since C++11) bool isnormal( Integral arg ); (4) (since C++11) 1-3%29确定给定的浮点数arg是...
std::isnormal 定义于头文件<cmath> boolisnormal(floatarg); (1)(C++11 起) boolisnormal(doublearg); (2)(C++11 起) boolisnormal(longdoublearg); (3)(C++11 起) boolisnormal(IntegralType arg); (4)(C++11 起) 1-3)确定给定的浮点数arg是否为正规值,即不是零、非正规、无穷大或 NaN 。
isnormal Is normal (macro/function ) fpclassify Classify floating-point value (macro/function ) 参考资料: 1、https://zh.cppreference.com/w/cpp/numeric/math/isnan 2、https://en.cppreference.com/w/cpp/numeric/math/isnan 3、http://www.cplusplus.com/reference/cmath/isnan/...
std::isnormal std::isunordered std::labs std::laguerre std::laguerref std::laguerrel std::lcm std::ldexp std::ldiv std::legendre std::legendref std::legendrel std::lgamma std::linear_congruential_engine std::linear_congruential_engine::discard std::linear_congruential_engine::linear_congruen...
isnan NAN Not-A-Number (constant ) isfinite Is finite value (macro ) isinf Is infinity (macro/function ) isnormal Is normal (macro/function ) fpclassify Classify floating-point value (macro/function ) 参考资料: 1、https://zh.cppreference.com/w/cpp/numeric/math/isnan2、https://en.cppref...
有多个拥有不同符号位和载荷的不同 NaN 值,参阅std::nan及std::numeric_limits::quiet_NaN。 NaN 值决不与自身或其他 NaN 值比较相等。 IEEE-754 不要求复制 NaN 保留其位表示(符号与载荷),尽管大多数实现保留。 另一种测试浮点值是否 NaN 的方式是与自身比较:boolis_nan(doublex){returnx!=x;} ...
checks if the given number has finite value (function) isinf (C++11) checks if the given number is infinite (function) isnormal (C++11) checks if the given number is normal (function) isunordered (C++11) checks if two floating-point values are unordered (function) ...
(function) (C++11) isinf checks if the given number is infinite (function) (C++11) isnormal checks if the given number is normal (function) (C++11) isunordered checks if two floating-point values are unordered (function) (C++11) Pages related to std::isnan ...