fabs
Calculates the absolute value of the floating-point argument.
double fabs( double x );
Function Required Header Compatibility
fabs <math.h> ANSI, Win 95, Win NT
For additional compatibility information, see Compatibility in the Introduction.
Libraries
LIBC.LIB Single thread static library, retail version
LIBCMT.LIB Multithread static library, retail version
MSVCRT.LIB Import library for MSVCRT.DLL, retail version
Return Value
fabs returns the absolute value of its argument. There is no error return.
Parameter
x
Floating-point value
Example
/* ABS.C: This program computes and displays
* the absolute values of several numbers.
*/