FMIN 3CW "09 March 2006" "mathcw-1.00"

Table of contents


NAME

fminf, fmin, fminl, fminw, fminq, fminll, fmindf, fmind, fmindl, fmindll - determine minimum numeric value of two floating-point numbers

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <mathcw.h>

extern float fminf (float x, float y);

extern double fmin (double x, double y);

extern long double fminl (long double x, long double y);

extern __float80 fminw (__float80 x, __float80 y);

extern __float128 fminq (__float128 x, __float128 y);

extern long_long_double fminll (long_long_double x, long_long_double y);

extern decimal_float fmindf (decimal_float x, decimal_float y);

extern decimal_double fmind (decimal_double x, decimal_double y);

extern decimal_long_double fmindl (decimal_long_double x, decimal_long_double y);

extern decimal_long_long_double fmindll (decimal_long_long_double x, decimal_long_long_double y);

NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.


DESCRIPTION

Compute the minimum numeric value of the two arguments, but treat NaN arguments as missing values.

RETURN VALUES

The value returned is the smaller of the arguments if neither is a NaN, and otherwise, it is the other argument (which might itself be a NaN).

ERRORS

None.

SEE ALSO

fmax(3CW).