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