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

Table of contents


NAME

fabsf, fabs, fabsl, fabsw, fabsq, fabsll, fabsdf, fabsd, fabsdl, fabsdll - absolute value function

SYNOPSIS

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

#include <mathcw.h>

extern float fabsf (float x);

extern double fabs (double x);

extern long double fabsl (long double x);

extern __float80 fabsw (__float80 x);

extern __float128 fabsq (__float128 x);

extern long_long_double fabsll (long_long_double x);

extern decimal_float fabsdf (decimal_float x);

extern decimal_double fabsd (decimal_double x);

extern decimal_long_double fabsdl (decimal_long_double x);

extern decimal_long_long_double fabsdll (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 argument.

ERRORS

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

SEE ALSO

copysign(3CW), signbit(3CW).