src code
Number#floor() → Number
Returns the largest integer less than or equal to the number. Convenience method that simply calls Math.floor on this instance and returns the result.
Math.floor