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 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
6 .\" Distributed under GPL
9 .TH FMIN 3 2021-03-22 "" "Linux Programmer's Manual"
11 fmin, fminf, fminl \- determine minimum of two floating-point numbers
16 .BI "double fmin(double " x ", double " y );
17 .BI "float fminf(float " x ", float " y );
18 .BI "long double fminl(long double " x ", long double " y );
24 Feature Test Macro Requirements for glibc (see
25 .BR feature_test_macros (7)):
32 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
35 These functions return the lesser value of
40 These functions return the minimum of
45 If one argument is a NaN, the other argument is returned.
47 If both arguments are NaN, a NaN is returned.
51 These functions first appeared in glibc in version 2.1.
53 For an explanation of the terms used in this section, see
61 Interface Attribute Value
66 T} Thread safety MT-Safe
72 C99, POSIX.1-2001, POSIX.1-2008.