Fix use of abs() for floating point arguments

I noticed this warning when building with Clang. The naked `abs` function is the integral one from the C library. By contrast, `std::abs` has integral and floating overloads.