std::abs for signed integers in other languages

Handle a magnitude that might exceed the signed range