fabs(3M)
NAME
fabs − absolute value function
SYNOPSIS
cc [ flag ... ] file ... −lm [ library ... ]
#include <math.h>
double fabs(double x);
DESCRIPTION
The fabs() function computes the absolute value of x, |x|.
RETURN VALUES
Upon successful completion, fabs() returns the absolute value of x.
If x is NaN, NaN is returned.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| MT-Level | MT-Safe |
SEE ALSO
SunOS 5.6 — Last change: 29 Dec 1996