NAME
fmax() — maximum value function
SYNOPSIS
#include <math.h>
double fmax(double x, double y);
DESCRIPTION
The
fmax()
function determines the maximum numeric value of its arguments.
The ISO/ANSI C committee has approved the
fmax()
function for inclusion in the C9X draft standard.
To use this function, compile either with the default
-Ae
option or with the
-Aa
and
-D_HPUX_SOURCE
options. Make sure your program includes
<math.h>.
Link in the math library by specifying
-lm
on the compiler or linker command line.
RETURN VALUE
The
fmax()
function returns the maximum numeric value of its arguments.
If one argument is a NaN and the other is numeric,
fmax()
returns the numeric argument.
If both arguments are NaNs,
fmax()
returns one of the arguments.
ERRORS
No errors are defined.