This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

ceil

        # Integer.ceil

(from ruby core)
---
    ceil(ndigits = 0) -> integer

---

Returns the smallest number greater than or equal to `self` with a
precision of `ndigits` decimal digits.

When the precision is negative, the returned value is an integer with at
least `ndigits.abs` trailing zeros:

    555.ceil(-1)  # => 560
    555.ceil(-2)  # => 600
    -555.ceil(-2) # => -500
    555.ceil(-3)  # => 1000

Returns `self` when `ndigits` is zero or positive.

    555.ceil     # => 555
    555.ceil(50) # => 555

Related: Integer#floor.



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.