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

floor

        # BigDecimal.floor

(from ruby core)
---
    floor(n)

---

Return the largest integer less than or equal to the value, as a
BigDecimal.

    BigDecimal('3.14159').floor #=> 3
    BigDecimal('-9.1').floor #=> -10

If n is specified and positive, the fractional part of the result has no
more than that many digits.

If n is specified and negative, at least that many digits to the left of
the decimal point will be 0 in the result.

    BigDecimal('3.14159').floor(3) #=> 3.141
    BigDecimal('13345.234').floor(-2) #=> 13300.0



      

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.