_finite函数的作用是什么
有谁了解_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.
问题点数:50、回复次数:7Top
1 楼TrueZq(xx)回复于 2003-12-02 20:02:09 得分 0
不知道。
PLATFORM SDK 中没有 _finite 这个函数。Top
2 楼ydfok(发芽的石头)回复于 2003-12-02 20:33:52 得分 0
就是判断flast是不是无限
肯定有这个吧
win ce里面都可以用的呀Top
3 楼wwwdfq1977(qswl)回复于 2003-12-02 20:55:21 得分 0
应该有的,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是"有限"的意思。
Top
4 楼wwwdfq1977(qswl)回复于 2003-12-04 18:19:12 得分 0
怎么没人回答?Top
5 楼byyyyy(苦行僧【苦】)回复于 2003-12-04 19:08:45 得分 50
判断这个双精度是不是有限的。Top
6 楼wwwdfq1977(qswl)回复于 2003-12-04 20:13:45 得分 0
具体解释一下她有何用?有不有限又有何用?INF和NaN又是什么?Top
7 楼wwwdfq1977(qswl)回复于 2003-12-06 17:02:06 得分 0
upTop




