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>
5 .\" SPDX-License-Identifier: GPL-1.0-or-later
7 .TH FMIN 3 2021-03-22 "" "Linux Programmer's Manual"
9 fmin, fminf, fminl \- determine minimum of two floating-point numbers
12 .RI ( libm ", " \-lm )
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 );
23 Feature Test Macro Requirements for glibc (see
24 .BR feature_test_macros (7)):
31 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
34 These functions return the lesser value of
39 These functions return the minimum of
44 If one argument is a NaN, the other argument is returned.
46 If both arguments are NaN, a NaN is returned.
50 These functions first appeared in glibc in version 2.1.
52 For an explanation of the terms used in this section, see
60 Interface Attribute Value
65 T} Thread safety MT-Safe
71 C99, POSIX.1-2001, POSIX.1-2008.