Debian Codegraph @

upstream/debian-trixie/man3/fmin.3

raw
1 '\" t
2 .\" Copyright 2002 Walter Harms ([email protected])
3 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
4 .\" <[email protected]>
5 .\"
6 .\" SPDX-License-Identifier: GPL-1.0-or-later
7 .\"
8 .TH fmin 3 2024-05-02 "Linux man-pages 6.9.1"
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 .P
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 .P
23 .RS -4
24 Feature Test Macro Requirements for glibc (see
25 .BR feature_test_macros (7)):
26 .RE
27 .P
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 .P
45 If one argument is a NaN, the other argument is returned.
46 .P
47 If both arguments are NaN, a NaN is returned.
48 .SH ERRORS
49 No errors occur.
50 .SH ATTRIBUTES
51 For an explanation of the terms used in this section, see
52 .BR attributes (7).
53 .TS
54 allbox;
55 lbx lb lb
56 l l l.
57 Interface Attribute Value
58 T{
59 .na
60 .nh
61 .BR fmin (),
62 .BR fminf (),
63 .BR fminl ()
64 T} Thread safety MT-Safe
65 .TE
66 .SH STANDARDS
67 C11, POSIX.1-2008.
68 .SH HISTORY
69 glibc 2.1.
70 C99, POSIX.1-2001.
71 .SH SEE ALSO
72 .BR fdim (3),
73 .BR fmax (3)