OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / draft / man3 / fmax.3
1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\"     <mtk.manpages@gmail.com>
4 .\" Distributed under GPL
5 .\"
6 .\" Japanese Version Copyright (c) 2004-2005 Yuichi SATO
7 .\"         all rights reserved.
8 .\" Translated Sat Jul 24 10:45:05 JST 2004
9 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
10 .\" Updated & Modified Mon Jan 10 10:11:00 JST 2005 by Yuichi SATO
11 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
12 .\"
13 .TH FMAX 3 2010-09-20 "" "Linux Programmer's Manual"
14 .\"O .SH NAME
15 .SH 名前
16 .\"O fmax, fmaxf, fmaxl \- determine maximum of two floating-point numbers
17 fmax, fmaxf, fmaxl \- 二つの浮動小数点数の最大値を求める
18 .\"O .SH SYNOPSIS
19 .SH 書式
20 .B #include <math.h>
21 .sp
22 .BI "double fmax(double " x ", double " y );
23 .br
24 .BI "float fmaxf(float " x ", float " y );
25 .br
26 .BI "long double fmaxl(long double " x ", long double " y );
27 .sp
28 .\"O Link with \fI\-lm\fP.
29 \fI\-lm\fP でリンクする。
30 .sp
31 .in -4n
32 .\"O Feature Test Macro Requirements for glibc (see
33 .\"O .BR feature_test_macros (7)):
34 glibc 向けの機能検査マクロの要件
35 .RB ( feature_test_macros (7)
36 参照):
37 .in
38 .sp
39 .ad l
40 .BR fmax (),
41 .BR fmaxf (),
42 .BR fmaxl ():
43 .RS 4
44 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
45 _POSIX_C_SOURCE\ >=\ 200112L;
46 .br
47 or
48 .I cc\ -std=c99
49 .RE
50 .ad
51 .\"O .SH DESCRIPTION
52 .SH 説明
53 .\"O These functions return the larger value of
54 .\"O .I x
55 .\"O and
56 .\"O .IR y .
57 これらの関数は
58 .I x
59
60 .I y
61 のうち大きい方の値を返す。
62 .\"O .SH RETURN VALUE
63 .SH 返り値
64 .\"O These functions return the maximum of
65 .\"O .I x
66 .\"O and
67 .\"O .IR y .
68 これらの関数は
69 .I x
70
71 .I y
72 の最大値を返す。
73
74 .\"O If one argument is a NaN, the other argument is returned.
75 一方の引き数が NaN の場合、もう一方の値が返される。
76
77 .\"O If both arguments are NaN, a NaN is returned.
78 両方の引き数が NaN の場合、NaN が返される。
79 .\"O .SH ERRORS
80 .SH エラー
81 .\"O No errors occur.
82 エラーは発生しない。
83 .\"O .SH VERSIONS
84 .SH バージョン
85 .\"O These functions first appeared in glibc in version 2.1.
86 これらの関数は glibc バージョン 2.1 で初めて登場した。
87 .\"O .SH "CONFORMING TO"
88 .SH 準拠
89 C99, POSIX.1-2001.
90 .\"O .SH "SEE ALSO"
91 .SH 関連項目
92 .BR fmin (3)