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

Table of contents


NAME

fdimf, fdim, fdiml, fdimw, fdimq, fdimll, fdimdf, fdimd, fdimdl, fdimdll - positive difference between two floating-point numbers

SYNOPSIS

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

#include <mathcw.h>

extern float fdimf (float x, float y);

extern double fdim (double x, double y);

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

extern __float80 fdimw (__float80 x, __float80 y);

extern __float128 fdimq (__float128 x, __float128 y);

extern long_long_double fdimll (long_long_double x, long_long_double y);

extern decimal_float fdimdf (decimal_float x, decimal_float y);

extern decimal_double fdimd (decimal_double x, decimal_double y);

extern decimal_long_double fdimdl (decimal_long_double x, decimal_long_double y);

extern decimal_long_long_double fdimdll (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 x - y if x > y, and otherwise, the result is zero.

RETURN VALUES

Return the positive difference between the arguments.

ERRORS

If either argument is a NaN, return that argument, and set errno to EDOM.

SEE ALSO