]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/fmin.3
Many pages: Use correct letter case in page titles (TH)
[thirdparty/man-pages.git] / man3 / fmin.3
CommitLineData
fea681da 1.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
d6c974e7
MK
2.\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3.\" <mtk.manpages@gmail.com>
2297bf0e 4.\"
95fb8859 5.\" SPDX-License-Identifier: GPL-1.0-or-later
fea681da 6.\"
4c1c5274 7.TH fmin 3 (date) "Linux man-pages (unreleased)"
fea681da 8.SH NAME
d6c974e7 9fmin, fminf, fminl \- determine minimum of two floating-point numbers
2af19291
AC
10.SH LIBRARY
11Math library
8fc3b2cf 12.RI ( libm ", " \-lm )
fea681da 13.SH SYNOPSIS
c7db92b9 14.nf
fea681da 15.B #include <math.h>
68e4db0a 16.PP
fea681da 17.BI "double fmin(double " x ", double " y );
fea681da 18.BI "float fminf(float " x ", float " y );
fea681da 19.BI "long double fminl(long double " x ", long double " y );
c7db92b9 20.fi
68e4db0a 21.PP
d39ad78f 22.RS -4
d6c974e7
MK
23Feature Test Macro Requirements for glibc (see
24.BR feature_test_macros (7)):
d39ad78f 25.RE
68e4db0a 26.PP
d6c974e7
MK
27.BR fmin (),
28.BR fminf (),
29.BR fminl ():
9d2adbae 30.nf
5c10d2c5 31 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
9d2adbae 32.fi
fea681da 33.SH DESCRIPTION
aabbba06 34These functions return the lesser value of
d6c974e7
MK
35.I x
36and
37.IR y .
38.SH RETURN VALUE
39These functions return the minimum of
7f45503b
MK
40.I x
41and
42.IR y .
847e0d88 43.PP
d6c974e7 44If one argument is a NaN, the other argument is returned.
847e0d88 45.PP
d6c974e7
MK
46If both arguments are NaN, a NaN is returned.
47.SH ERRORS
48No errors occur.
f0d7ce1d
MK
49.SH VERSIONS
50These functions first appeared in glibc in version 2.1.
8300b8b8 51.SH ATTRIBUTES
8783ef46
MK
52For an explanation of the terms used in this section, see
53.BR attributes (7).
c466875e
MK
54.ad l
55.nh
8783ef46
MK
56.TS
57allbox;
c466875e 58lbx lb lb
8783ef46
MK
59l l l.
60Interface Attribute Value
61T{
8300b8b8
PH
62.BR fmin (),
63.BR fminf (),
8300b8b8 64.BR fminl ()
8783ef46
MK
65T} Thread safety MT-Safe
66.TE
c466875e
MK
67.hy
68.ad
69.sp 1
3113c7f3 70.SH STANDARDS
9a74e018 71C99, POSIX.1-2001, POSIX.1-2008.
47297adb 72.SH SEE ALSO
0b5ff3b6 73.BR fdim (3),
fea681da 74.BR fmax (3)