maxmin(3C)
fmax, fmaxf, fmaxl, fmin, fminf, fminl - maximum and minimum functions
Showing IRIX 6.5.30 (default release). Last changed in IRIX 6.5.22.
NAME fmax, fmaxf, fmaxl, fmin, fminf, fminl - maximum and minimum 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. 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 If just one argument is a NaN, the fmax functions return the other argument (if both arguments are NaNs, the functions return a NaN). The analagous results are also true for the fmin functions. SEE ALSO math(3M)