DFABS 3CW "21 March 2008" "mathcw-1.00"

Table of contents


NAME

dfabsf, dfabs, dfabsl, dfabsw, dfabsq, dfabsll, dfabsdf, dfabsd, dfabsdl, dfabsdll - absolute value function

SYNOPSIS

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

#include <mathcw.h>

extern void dfabsf (float *result, float x);

extern void dfabs (double *result, double x);

extern void dfabsl (long double *result, long double x);

extern void dfabsw (__float80 *result, __float80 x);

extern void dfabsq (__float128 *result, __float128 x);

extern void dfabsll (long_long_double *result, long_long_double x);

extern void dfabsdf (decimal_float *result, decimal_float x);

extern void dfabsd (decimal_double *result, decimal_double x);

extern void dfabsdl (decimal_long_double *result, decimal_long_double x);

extern void dfabsdll (decimal_long_long_double *result, decimal_long_long_double x);

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


DESCRIPTION

Compute the absolute value of x.

RETURN VALUES

Return the absolute value of the second argument in the location pointed to by the first argument.

ERRORS

If the argument is a NaN, return the argument without setting errno.

SEE ALSO

dfadd(3CW), dfdiv(3CW), dfmul(3CW), dfneg(3CW), dfsqrt(3CW), dfsub(3CW).