floor
1.6.0
floor() -> Number
Returns the largest integer less than or equal to the number.
An instance-method version of Math.floor
.
Examples
Math.floor(4.6) //-> 4
(4.6).floor() //-> 4
(-4.1).floor() //-> -5
floor() -> Number
Returns the largest integer less than or equal to the number.
An instance-method version of Math.floor
.
Math.floor(4.6) //-> 4
(4.6).floor() //-> 4
(-4.1).floor() //-> -5