coerce output of integer modulus, since x%0 is NaN, which is not an integer