FMAX(3) | Library Functions Manual | FMAX(3) |
fmax
— return
maximum value
#include
<math.h>
double
fmax
(double
x, double y);
long double
fmaxl
(long
double x, long double
y);
float
fmaxf
(float
x, float y);
The
fmax
()
functions return x or y, whichever is larger.
If exactly one argument is a NaN, fmax
()
returns the other argument. If both arguments are NaNs,
fmax
() returns a NaN.
The fmax
() functions conform to ISO/IEC
9899:2011.
December 11, 2006 | macOS 15.0 |