Determines the absolute value.
#include <math.h> float fabsf (x) float x; long double fabsl (x) long double x; double fabs (x) double x;
The fabsf, fabsl, and fabs subroutines compute the absolute value of the x parameter, |x|.
x | Specifies the value to be computed. |
Upon successful completion, the fabsf, fabsl, and fabs subroutines return the absolute value of x.
If x is NaN, a NaN is returned.
If x is ±0, +0 is returned.
If x is ±Inf, +Inf is returned.
The class, _class, finite, isnan, or unordered Subroutines.
math.h in AIX 5L Version 5.2 Files Reference.