The problem is that this function doesn't round correctly for negative numbers. For example : 1.5 ~= 2. 0.5 ~= 1. -0.5 ~= 0 // Wrong. -1.5 ~= -1 // Wrong.
確定! 回上一頁