Partially revert "oops, abs() != fabs() - and DBL_EPSILON isn't what I thought it was"

Old commit ae8d89f8520a366be1881ca5bc4936518f146259.