1 2 3 4 5 6 7 8 9 10
#include <math.h> double fabs(double arg) { if(arg < 0) return -arg; return arg; }