关于C++中_finite()和_snprintf函数的说明

来源:互联网 发布:潇潇美容馆淘宝店铺 编辑:程序博客网 时间:2024/05/19 05:39
The function int _finite(double x)returns 1 (true) if x is an ordinary number and 0 (false) ifx is either infinite or not-a-number (NaN).

msdn中如下描述中INF和NaN  
  _finite   returns   a   nonzero   value   (TRUE)   if   its   argument   x   is   not   infinite,   that   is,   if   –INF   <   x   <   +INF.   It   returns   0   (FALSE)   if   the   argument   is   infinite   or   a   NaN.

其中INF表示无穷大(浮点数有上溢出),

NaN标示not a number.

原创粉丝点击