This commit makes the functions behave as expected, this is, rounding towards plus or minus infinity.