OSDN Git Service

(split) LDP: Restore and add Copyrights for draft pages
[linuxjm/LDP_man-pages.git] / draft / man3 / nan.3
1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\"
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" Distributed under GPL
5 .\" %%%LICENSE_END
6 .\"
7 .\" Based on glibc infopages
8 .\"
9 .\" Corrections by aeb
10 .\"
11 .\"*******************************************************************
12 .\"
13 .\" This file was generated with po4a. Translate the source file.
14 .\"
15 .\"*******************************************************************
16 .\"
17 .\" Japanese Version Copyright (c) 2002 Akihiro MOTOKI all rights reserved.
18 .\" Translated Thu 05 Dec 2002 by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
19 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
20 .\"
21 .TH NAN 3 2010\-09\-20 GNU "Linux Programmer's Manual"
22 .SH 名前
23 nan, nanf, nanl \- 無効値 ('Not a Number') を返す
24 .SH 書式
25 \fB#include <math.h>\fP
26 .sp
27 \fBdouble nan(const char *\fP\fItagp\fP\fB);\fP
28 .br
29 \fBfloat nanf(const char *\fP\fItagp\fP\fB);\fP
30 .br
31 \fBlong double nanl(const char *\fP\fItagp\fP\fB);\fP
32 .sp
33 \fI\-lm\fP でリンクする。
34 .sp
35 .in -4n
36 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
37 .in
38 .sp
39 .ad l
40 \fBnan\fP(), \fBnanf\fP(), \fBnanl\fP():
41 .RS 4
42 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L;
43 .br
44 or \fIcc\ \-std=c99\fP
45 .RE
46 .ad
47 .SH 説明
48 これらの関数は、SIGFPE シグナルなしの無効値 (NaN) を示す表現を返す (どの表現を使用するかは \fItagp\fP で指定する)。SIGFPE
49 シグナルなしの NaN をサポートしていない実装では 0 を返す。
50 .LP
51 \fInan("char\-sequence")\fP を呼び出すのは、以下と等価である。
52 .nf
53
54     strtod("NAN(char\-sequence)", NULL);
55 .fi
56 .PP
57 同様に、 \fBnanf\fP()  や \fBnanl\fP()  を呼び出すのは、 \fBstrtof\fP()  や \fBstrtold\fP()
58 を呼ぶのと同じである。
59 .PP
60 引き数 \fItagp\fP の使い方は規定されていない。 IEEE 754 準拠のシステムでは、NaN にも複数の表現が存在し、 \fItagp\fP
61 はその選択に使用される。 他のシステムでは、何の意味もないかもしれない。
62 .SH バージョン
63 これらの関数は glibc バージョン 2.1 で初めて登場した。
64 .SH 準拠
65 C99, POSIX.1\-2001.  IEC 559 や推奨関数になっている IEEE 754/IEEE 854 の付録も参照すること。
66 .SH 関連項目
67 \fBisnan\fP(3), \fBstrtod\fP(3), \fBmath_error\fP(7)
68 .SH この文書について
69 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
70 である。プロジェクトの説明とバグ報告に関する情報は
71 http://www.kernel.org/doc/man\-pages/ に書かれている。