OSDN Git Service

(split) LDP man-pages の original/ を v3.29 に更新。
[linuxjm/LDP_man-pages.git] / original / man3 / fmin.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 .TH FMIN 3 2010-09-20 "" "Linux Programmer's Manual"
7 .SH NAME
8 fmin, fminf, fminl \- determine minimum of two floating-point numbers
9 .SH SYNOPSIS
10 .B #include <math.h>
11 .sp
12 .BI "double fmin(double " x ", double " y );
13 .br
14 .BI "float fminf(float " x ", float " y );
15 .br
16 .BI "long double fminl(long double " x ", long double " y );
17 .sp
18 Link with \fI\-lm\fP.
19 .sp
20 .in -4n
21 Feature Test Macro Requirements for glibc (see
22 .BR feature_test_macros (7)):
23 .in
24 .sp
25 .ad l
26 .BR fmin (),
27 .BR fminf (),
28 .BR fminl ():
29 .RS 4
30 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
31 _POSIX_C_SOURCE\ >=\ 200112L;
32 .br
33 or
34 .I cc\ -std=c99
35 .RE
36 .ad
37 .SH DESCRIPTION
38 These functions the lesser value of
39 .I x
40 and
41 .IR y .
42 .SH RETURN VALUE
43 These functions return the minimum of
44 .I x
45 and
46 .IR y .
47
48 If one argument is a NaN, the other argument is returned.
49
50 If both arguments are NaN, a NaN is returned.
51 .SH ERRORS
52 No errors occur.
53 .SH VERSIONS
54 These functions first appeared in glibc in version 2.1.
55 .SH "CONFORMING TO"
56 C99, POSIX.1-2001.
57 .SH "SEE ALSO"
58 .BR fmax (3)