instance method Number#floor

View source on GitHub →

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.