The fabs function

Name

fabs -- 

Synopsis

#include <math.h>

double fabs (double x );

Description

The fabs function computes the absolute value of a floating-point number x.

Returns

The fabs function returns the absolute value of x.

Implementation Notes

The fabs function is built in, and the instructions to compute the absolute value will be generated in line. Also the library contains an fabs function for use where the address of the function is needed.