OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / draft / man3 / fabs.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified Sat Jul 24 19:42:04 1993 by Rik Faith (faith@cs.unc.edu)
28 .\" Added fabsl, fabsf, aeb, 2001-06-07
29 .\"
30 .\" Japanese Version Copyright (c) 1997 YOSHINO Takashi
31 .\"       all rights reserved.
32 .\" Translated Mon Jan 20 20:29:27 JST 1997
33 .\"       by YOSHINO Takashi <yoshino@civil.jcn.nihon-u.ac.jp>
34 .\" Updated & Modified Sun Jul  1 10:59:51 JST 2001
35 .\"       by Yuichi SATO <ysato@h4.dion.ne.jp>
36 .\" Updated & Modified Mon Jan 10 07:44:31 JST 2005
37 .\"       by Yuichi SATO <ysato444@yahoo.co.jp>
38 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
39 .\"
40 .TH FABS 3  2010-09-20 "" "Linux Programmer's Manual"
41 .\"O .SH NAME
42 .SH 名前
43 .\"O fabs, fabsf, fabsl \- absolute value of floating-point number
44 fabs, fabsf, fabsl \- 浮動小数点実数の絶対値
45 .\"O .SH SYNOPSIS
46 .SH 書式
47 .nf
48 .B #include <math.h>
49 .sp
50 .BI "double fabs(double " x );
51 .br
52 .BI "float fabsf(float " x );
53 .br
54 .BI "long double fabsl(long double " x );
55 .fi
56 .sp
57 .\"O Link with \fI\-lm\fP.
58 \fI\-lm\fP でリンクする。
59 .sp
60 .in -4n
61 .\"O Feature Test Macro Requirements for glibc (see
62 .\"O .BR feature_test_macros (7)):
63 glibc 向けの機能検査マクロの要件
64 .RB ( feature_test_macros (7)
65 参照):
66 .in
67 .sp
68 .ad l
69 .BR fabsf (),
70 .BR fabsl ():
71 .RS 4
72 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
73 _POSIX_C_SOURCE\ >=\ 200112L;
74 .br
75 or
76 .I cc\ -std=c99
77 .RE
78 .ad b
79 .\"O .SH DESCRIPTION
80 .SH 説明
81 .\"O The
82 .\"O .BR fabs ()
83 .\"O functions return the absolute value of the floating-point
84 .\"O number \fIx\fP.
85 .BR fabs ()
86 関数群は浮動小数点実数 \fIx\fP の絶対値を返す。
87 .\"O .SH RETURN VALUE
88 .SH 返り値
89 .\"O These functions return the absolute value of
90 .\"O .IR x .
91 これらの関数は
92 .I x
93 の絶対値を返す。
94
95 .\"O If
96 .\"O .I x
97 .\"O is a NaN, a NaN is returned.
98 .I x
99 が NaN の場合、NaN が返される。
100
101 .\"O If
102 .\"O .I x
103 .\"O is \-0, +0 is returned.
104 .I x
105 が \-0 の場合、+0 が返される。
106
107 .\"O If
108 .\"O .I x
109 .\"O is negative infinity or positive infinity, positive infinity is returned.
110 .I x
111 が負の無限大か正の無限大の場合、正の無限大が返される。
112 .\"O .SH ERRORS
113 .SH エラー
114 .\"O No errors occur.
115 エラーは起こらない。
116 .\"O .SH "CONFORMING TO"
117 .SH 準拠
118 C99, POSIX.1-2001.
119 .\"O The variant returning
120 .\"O .I double
121 .\"O also conforms to
122 .\"O SVr4, 4.3BSD, C89.
123 .I double
124 版の関数は SVr4, 4.3BSD, C89 にも準拠している。
125 .\"O .SH "SEE ALSO"
126 .SH 関連項目
127 .BR abs (3),
128 .BR cabs (3),
129 .BR ceil (3),
130 .BR floor (3),
131 .BR labs (3),
132 .BR rint (3)