#include <math.h> double fabs(double x);
x if x is positive, else -x. Note that in this context, +0.0 is positive and -0.0 is negative.
ANSI, POSIX
Go to the first, previous, next, last section, table of contents.