Fix incorrectly rounding away negative numbers