FMAX(3) Library Functions Manual FMAX(3)

fmaxreturn 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 () 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.

fdim(3), fma(3), fmin(3)

The fmax() functions conform to ISO/IEC 9899:2011.

December 11, 2006 Mac OS X 12