1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
3 .\" Based on glibc infopages
7 .\" Japanese Version Copyright (c) 2002 Akihiro MOTOKI all rights reserved.
8 .\" Translated Thu 05 Dec 2002 by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
9 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
12 .\"WORD: quiet NaN SIGFPE ¥·¥°¥Ê¥ë¤Ê¤·¤Î̵¸úÃÍ
14 .TH NAN 3 2010-09-20 "GNU" "Linux Programmer's Manual"
16 .\"O nan, nanf, nanl \- return 'Not a Number'
18 nan, nanf, nanl \- ̵¸úÃÍ ('Not a Number') ¤òÊÖ¤¹
23 .BI "double nan(const char *" tagp );
25 .BI "float nanf(const char *" tagp );
27 .BI "long double nanl(const char *" tagp );
29 .\"O Link with \fI\-lm\fP.
30 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
33 .\"O Feature Test Macro Requirements for glibc (see
34 .\"O .BR feature_test_macros (7)):
35 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
36 .RB ( feature_test_macros (7)
45 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
46 _POSIX_C_SOURCE\ >=\ 200112L;
54 .\"O These functions return a representation (determined by
57 .\"O If the implementation does not support
58 .\"O quiet NaNs, these functions return zero.
59 .\" motoki: quiet NaN ¤È¤Ï²¿¤À¤í¤¦¡©
60 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢SIGFPE ¥·¥°¥Ê¥ë¤Ê¤·¤Î̵¸úÃÍ (NaN) ¤ò¼¨¤¹É½¸½¤òÊÖ¤¹
61 (¤É¤Îɽ¸½¤ò»ÈÍѤ¹¤ë¤«¤Ï
63 ¤Ç»ØÄꤹ¤ë)¡£SIGFPE ¥·¥°¥Ê¥ë¤Ê¤·¤Î NaN ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¼ÂÁõ¤Ç¤Ï 0 ¤òÊÖ¤¹¡£
66 .\"O .I nan("char-sequence")
67 .\"O is equivalent to:
70 .\"O strtod("NAN(char-sequence)", NULL);
72 .I nan("char-sequence")
76 strtod("NAN(char-sequence)", NULL);
81 .\"O Similarly, calls to
85 .\"O are equivalent to analogous calls to
97 ¤ò¸Æ¤Ö¤Î¤ÈƱ¤¸¤Ç¤¢¤ë¡£
101 .\"O is used in an unspecified manner.
102 .\"O On IEEE 754 systems, there are
103 .\"O many representations of NaN, and
106 .\"O On other systems it may do nothing.
109 ¤Î»È¤¤Êý¤Ïµ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤¡£
110 IEEE 754 ½àµò¤Î¥·¥¹¥Æ¥à¤Ç¤Ï¡¢NaN ¤Ë¤âÊ£¿ô¤Îɽ¸½¤¬Â¸ºß¤·¡¢
112 ¤Ï¤½¤ÎÁªÂò¤Ë»ÈÍѤµ¤ì¤ë¡£
113 ¾¤Î¥·¥¹¥Æ¥à¤Ç¤Ï¡¢²¿¤Î°ÕÌ£¤â¤Ê¤¤¤«¤â¤·¤ì¤Ê¤¤¡£
116 .\"O These functions first appeared in glibc in version 2.1.
117 ¤³¤ì¤é¤Î´Ø¿ô¤Ï glibc ¥Ð¡¼¥¸¥ç¥ó 2.1 ¤Ç½é¤á¤ÆÅо줷¤¿¡£
118 .\"O .SH "CONFORMING TO"
121 .\"O See also IEC 559 and the appendix with
122 .\"O recommended functions in IEEE 754/IEEE 854.
123 IEC 559 ¤ä¿ä¾©´Ø¿ô¤Ë¤Ê¤Ã¤Æ¤¤¤ë IEEE 754/IEEE 854
124 ¤ÎÉÕÏ¿¤â»²¾È¤¹¤ë¤³¤È¡£