—
NAME
fmin, fminf, fminl - determine minimum of two floating-point numbers
LIBRARY
Math library (libm, -lm)
SYNOPSIS
bash
#include <math.h>bash
double fmin(double \nx\n, double \ny\n);\n
\nfloat fminf(float \nx\n, float \ny\n);\n
\nlong double fminl(long double \nx\n, long double \ny\n);fmin(), fminf(), fminl():
bash
\n
_ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112LDESCRIPTION
These functions return the lesser value of x and y.
RETURN VALUE
These functions return the minimum of x and y.
If one argument is a NaN, the other argument is returned.
If both arguments are NaN, a NaN is returned.
ERRORS
No errors occur.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
| Interface | Attribute | Value |
| fmin (), fminf (), fminl () | Thread safety | MT-Safe |
STANDARDS
C11, POSIX.1-2008.
HISTORY
glibc 2.1. C99, POSIX.1-2001.
SEE ALSO
fdim(3), fmax(3)