maxmin(3C)

fmax, fmaxf, fmaxl, fmin, fminf, fminl - maximum and minimum and positive difference functions

As shipped in IRIX 6.5.19. Added in IRIX 6.5.19.

NAME
     fmax, fmaxf, fmaxl, fmin, fminf, fminl - maximum and minimum and positive
     difference functions

SYNOPSIS
     #include <math.h>

     double fmax(double x, double y);
     float fmaxf(float x, float y);
     long double fmaxl(long double x, long double y);

     double fmin(double x, double y);
     float fminf(float x, float y);
     long double fminl(long double x, long double y);

DESCRIPTION
     These routines are not available for programs compiled with the O32 ABI.

     Functions in the standard math library (libm.a) are referred to as -lm
     versions. Those in mathx library (libmx.a) are referred to as -lmx
     versions, and those in the the BSD math library (libm43.a) are referred
     to as -lm43 versions.

     The fmax functions determine the maximum numeric value of their
     arguments.

     The fmin functions determine the minimum numeric value of their
     arguments.

NOTES
     Long double operations on this system are only supported in round to
     nearest rounding mode (the default).  The system must be in round to
     nearest rounding mode when calling any of the long double functions, or
     incorrect answers will result.

RETURN VALUES
     The -lm and -lmx versions always return the default Quiet NaN and set
     errno to EDOM when a NaN is used as an argument.  A NaN argument usually
     causes the -lm43 versions to return the same argument.  The -lm43
     versions never set errno.

     See matherr(3M) for a description of error handling for -lmx functions.

SEE ALSO
     math(3M) and matherr(3M)