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  attri-
     butes:

     ____________________________________________________________
    |       ATTRIBUTE TYPE        |       ATTRIBUTE VALUE       |
    |_____________________________|_____________________________|
    | MT-Level                    | MT-Safe                     |
    |_____________________________|_____________________________|


SEE ALSO

     isnan(3M), attributes(5)


Man(1) output converted with man2html