OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / 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 .\"*******************************************************************
31 .\"
32 .\" This file was generated with po4a. Translate the source file.
33 .\"
34 .\"*******************************************************************
35 .TH FABS 3 2010\-09\-20 "" "Linux Programmer's Manual"
36 .SH 名前
37 fabs, fabsf, fabsl \- 浮動小数点実数の絶対値
38 .SH 書式
39 .nf
40 \fB#include <math.h>\fP
41 .sp
42 \fBdouble fabs(double \fP\fIx\fP\fB);\fP
43 .br
44 \fBfloat fabsf(float \fP\fIx\fP\fB);\fP
45 .br
46 \fBlong double fabsl(long double \fP\fIx\fP\fB);\fP
47 .fi
48 .sp
49 \fI\-lm\fP でリンクする。
50 .sp
51 .in -4n
52 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
53 .in
54 .sp
55 .ad l
56 \fBfabsf\fP(), \fBfabsl\fP():
57 .RS 4
58 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
59 || _POSIX_C_SOURCE\ >=\ 200112L;
60 .br
61 or \fIcc\ \-std=c99\fP
62 .RE
63 .ad b
64 .SH 説明
65 \fBfabs\fP()  関数群は浮動小数点実数 \fIx\fP の絶対値を返す。
66 .SH 返り値
67 これらの関数は \fIx\fP の絶対値を返す。
68
69 \fIx\fP が NaN の場合、NaN が返される。
70
71 \fIx\fP が \-0 の場合、+0 が返される。
72
73 \fIx\fP が負の無限大か正の無限大の場合、正の無限大が返される。
74 .SH エラー
75 エラーは発生しない。
76 .SH 準拠
77 C99, POSIX.1\-2001.  \fIdouble\fP 版の関数は SVr4, 4.3BSD, C89 にも準拠している。
78 .SH 関連項目
79 \fBabs\fP(3), \fBcabs\fP(3), \fBceil\fP(3), \fBfloor\fP(3), \fBlabs\fP(3), \fBrint\fP(3)