看板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