#include float fabs(float arg) { if(arg < 0) return -arg; return arg; }