Improve rounding handling.