adg: use fabs instead of abs
All internal operations use floating points: abs accepts integer values. This is just plain wrong.