看板Linux
标 题Re: 问题:不明函式finite()
发信站SayYA 资讯站 (Wed Jun 11 14:45:50 2008)
转信站ptt!ctu-reader!ctu-peer!news.nctu!News.Math.NCTU!SayYa
※ 引述《[email protected] (旧的关系开始一一切断)》之铭言:
> 感谢你的指教,我耍笨了。
> 网路上查了一大堆,却完全忘记系统最基本的
> 文件:Manpage的存在了。(整个糗)
> 查到了,我的系统定义在ieeefp.h里面。
所以,对自己好一些...
http://blog.linux.org.tw/~jserv/archives/002008.html
manpage 提到一个很重要的讯息:
<%
#include <math.h>
int finite(double x);
int finitef(float x);
...
NOTES
Note that these functions are obsolete. C99 defines macros isfinite(),
isinf(), and isnan() (for all types) replacing them. Further note that
the C99 isinf() has weaker guarantees on the return value. See fpclas-
sify(3).
%>
在 C99 已有截然不同的表示法,详情可参阅 C99 规格 "5.2.4.2.2 Characteristics
of floating types"
--
Jim Huang aka "jserv"
Planet OrzLab:
http://orzlab.blogspot.com/
website:
http://jserv.sayya.org/
blog:
http://blog.linux.org.tw/jserv/
--
※ Origin: SayYA 资讯站 <bbs.sayya.org>
◆ From: info.sayya.org