On Feb 11, 2008, at 19:26, Andreas Delmelle wrote: <snip />
So,Math.floor(-2.3) = -3 Math.ceil(-2.3) = -2 Math.rint(-2.3) = -2rint() has the additional side-effect of returning just the closest even integer, so:Math.rint(-3.3) == Math.floor(-3.3) != Math.ceil(-3.3)
Correction, this would only holds for -3.5 because that is a value that is as close to -4 as it is to -3.