OSDN Git Service

46695bd0d34476bb7df3a8246fd5d1901d3b15f3
[linuxjm/LDP_man-pages.git] / draft / man3 / infnan.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\" Modified Sat Jul 24 19:11:11 1993 by Rik Faith (faith@cs.unc.edu)
30 .\" Modified 2004-11-12 as per suggestion by Fabian Kreutz/AEB
31 .\"     to note that this function is not available in glibc2.
32 .\"
33 .\"*******************************************************************
34 .\"
35 .\" This file was generated with po4a. Translate the source file.
36 .\"
37 .\"*******************************************************************
38 .TH INFNAN 3 1993\-06\-02 GNU "Linux Programmer's Manual"
39 .SH 名前
40 infnan \- 無限大と無効値 (NaN) を取扱う
41 .SH 書式
42 .nf
43 \fB#include <math.h>\fP
44 .sp
45 \fBdouble infnan(int \fP\fIerror\fP\fB);\fP
46 .fi
47 .sp
48 \fI\-lm\fP でリンクする。
49 .SH 説明
50 関数 \fBinfnan\fP()  は無限大と無効値 (NaN) の結果に対する適切な値を返す。 \fIerror\fP の値は、無限大を表す \fBERANGE\fP
51 か NaN を表すそれ以外の値である。 \fIerrno\fP も同様に設定される。
52 .SH 返り値
53 \fIerror\fP が \fBERANGE\fP (無限大) の場合、 \fBHUGE_VAL\fP が返される。
54 .PP
55 \fIerror\fP が \-\fBERANGE\fP (負の無限大) の場合、 \-\fBHUGE_VAL\fP が返される。
56 .PP
57 \fIerror\fP がそれ以外の値の場合、NaN が返される。
58 .SH エラー
59 .TP 
60 \fBEDOM\fP
61 \fIerror\fP の値が無効値 (NaN) である。
62 .TP 
63 \fBERANGE\fP
64 \fIerror\fP の値が正の無限大もしくは負の無限大である。
65 .SH 準拠
66 4.3BSD.
67 .SH 注意
68 この廃止された (obsolete) 関数は、 libc4 と libc5 で提供されていたが、 glibc2 では提供されていない。
69 .SH この文書について
70 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
71 である。プロジェクトの説明とバグ報告に関する情報は
72 http://www.kernel.org/doc/man\-pages/ に書かれている。