The API docs don't describe how this behaves. I did a quick test, and it behaves like Math.floor() if the number is positive, but like Math.ceil() if the number is negative. e.g.,
3.2 => 3
3.9 => 3
-3.2 => -3
-3.9 => -3
Worth updating the docs I think.