Re: 問題:不明函式finite()

看板Linux作者時間17年前 (2008/06/11 18:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/4 (看更多)
※ 引述《parvenir.bbs@bbs.ntou.edu.tw (舊的關係開始一一切斷)》之銘言: > 感謝你的指教,我耍笨了。 > 網路上查了一大堆,卻完全忘記系統最基本的 > 文件: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
文章代碼(AID): #18Jw9V00 (Linux)
文章代碼(AID): #18Jw9V00 (Linux)