Use fabs instead of abs

Use fabs function instead of abs for floating point.