num.ceil â integer
Instance Public methods
Returns the smallest Integer greater than or equal to
num. Class Numeric achieves
this by converting itself to a Float then invoking
Float#ceil.
1.ceil #=> 1 1.2.ceil #=> 2 (-1.2).ceil #=> -1 (-1.0).ceil #=> -1
Please login to continue.