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

floor

        # Integer.floor

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

---

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

When `ndigits` is negative, the returned value has at least
`ndigits.abs` trailing zeros:

    555.floor(-1)  # => 550
    555.floor(-2)  # => 500
    -555.floor(-2) # => -600
    555.floor(-3)  # => 0

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

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

Related: Integer#ceil.



      

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.