]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/fmin.3
All pages: Remove the 5th argument to .TH
[thirdparty/man-pages.git] / 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 .\"
5 .\" SPDX-License-Identifier: GPL-1.0-or-later
6 .\"
7 .TH FMIN 3 2021-03-22 "Linux man-pages (unreleased)"
8 .SH NAME
9 fmin, fminf, fminl \- determine minimum of two floating-point numbers
10 .SH LIBRARY
11 Math library
12 .RI ( libm ", " \-lm )
13 .SH SYNOPSIS
14 .nf
15 .B #include <math.h>
16 .PP
17 .BI "double fmin(double " x ", double " y );
18 .BI "float fminf(float " x ", float " y );
19 .BI "long double fminl(long double " x ", long double " y );
20 .fi
21 .PP
22 .RS -4
23 Feature Test Macro Requirements for glibc (see
24 .BR feature_test_macros (7)):
25 .RE
26 .PP
27 .BR fmin (),
28 .BR fminf (),
29 .BR fminl ():
30 .nf
31 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
32 .fi
33 .SH DESCRIPTION
34 These functions return the lesser value of
35 .I x
36 and
37 .IR y .
38 .SH RETURN VALUE
39 These functions return the minimum of
40 .I x
41 and
42 .IR y .
43 .PP
44 If one argument is a NaN, the other argument is returned.
45 .PP
46 If both arguments are NaN, a NaN is returned.
47 .SH ERRORS
48 No errors occur.
49 .SH VERSIONS
50 These functions first appeared in glibc in version 2.1.
51 .SH ATTRIBUTES
52 For an explanation of the terms used in this section, see
53 .BR attributes (7).
54 .ad l
55 .nh
56 .TS
57 allbox;
58 lbx lb lb
59 l l l.
60 Interface Attribute Value
61 T{
62 .BR fmin (),
63 .BR fminf (),
64 .BR fminl ()
65 T} Thread safety MT-Safe
66 .TE
67 .hy
68 .ad
69 .sp 1
70 .SH STANDARDS
71 C99, POSIX.1-2001, POSIX.1-2008.
72 .SH SEE ALSO
73 .BR fdim (3),
74 .BR fmax (3)