Fix rounding on negative numbers.