num.floor â integer
Instance Public methods
Returns the largest integer less than or equal to num.
Numeric
implements this by converting anInteger to a
Float
and invoking Float#floor
.
1 2 | 1 .floor #=> 1 (- 1 ).floor #=> -1 |
Please login to continue.