Go to the first, previous, next, last section, table of contents.
#include <math.h> double fabs(double x);
This function computes the absolute value of its argument x.
x if x is positive, else -x. Note that in this
context, +0.0 is positive and -0.0 is negative. Infinities and
NaN
s are returned unchanged, except for the sign.
ANSI, POSIX
Go to the first, previous, next, last section, table of contents.