OSDN Git Service

d609ded250e2ecf8fa605fe92a4c56b267e7bf40
[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 2008-08-11 "" "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 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
44 .I cc\ -std=c99
45 .ad b
46 .\"O .SH DESCRIPTION
47 .SH ÀâÌÀ
48 .\"O These functions return the larger value of
49 .\"O .I x
50 .\"O and
51 .\"O .IR y .
52 ¤³¤ì¤é¤Î´Ø¿ô¤Ï
53 .I x
54 ¤È
55 .I y
56 ¤Î¤¦¤ÁÂ礭¤¤Êý¤ÎÃͤòÊÖ¤¹¡£
57 .\"O .SH RETURN VALUE
58 .SH ÊÖ¤êÃÍ
59 .\"O These functions return the maximum of
60 .\"O .I x
61 .\"O and
62 .\"O .IR y .
63 ¤³¤ì¤é¤Î´Ø¿ô¤Ï
64 .I x
65 ¤È
66 .I y
67 ¤ÎºÇÂçÃͤòÊÖ¤¹¡£
68
69 .\"O If one argument is a NaN, the other argument is returned.
70 °ìÊý¤Î°ú¤­¿ô¤¬ NaN ¤Î¾ì¹ç¡¢¤â¤¦°ìÊý¤ÎÃͤ¬ÊÖ¤µ¤ì¤ë¡£
71
72 .\"O If both arguments are NaN, a NaN is returned.
73 ξÊý¤Î°ú¤­¿ô¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
74 .\"O .SH ERRORS
75 .SH ¥¨¥é¡¼
76 .\"O No errors occur.
77 ¥¨¥é¡¼¤ÏȯÀ¸¤·¤Ê¤¤¡£
78 .\"O .SH VERSIONS
79 .SH ¥Ð¡¼¥¸¥ç¥ó
80 .\"O These functions first appeared in glibc in version 2.1.
81 ¤³¤ì¤é¤Î´Ø¿ô¤Ï glibc ¥Ð¡¼¥¸¥ç¥ó 2.1 ¤Ç½é¤á¤ÆÅо줷¤¿¡£
82 .\"O .SH "CONFORMING TO"
83 .SH ½àµò
84 C99, POSIX.1-2001.
85 .\"O .SH "SEE ALSO"
86 .SH ´ØÏ¢¹àÌÜ
87 .BR fmin (3)