有誰了解_finite函數是做什么用的
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.
7 个解决方案
不知道。
PLATFORM SDK 中沒有 _finite 這個函數。
就是判斷flast是不是無限
肯定有這個吧
win ce里面都可以用的呀
應該有的,msdn中如下描述
_finite
Determines whether given double-precision floating point value is finite.
int _finite( double x );
Function Required Header Compatibility
_finite <float.h> Win 95, Win NT
For additional compatibility information, see Compatibility in the Introduction.
Libraries
LIBC.LIB Single thread static library, retail version
LIBCMT.LIB Multithread static library, retail version
MSVCRT.LIB Import library for MSVCRT.DLL, retail version
可見他是c運行時庫函數,但是我就是不明白這個函數到底是什么作用
盡管我知道finite是"有限"的意思。
具體解釋一下她有何用?有不有限又有何用?INF和NaN又是什么?