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

div

        # BigDecimal.div

(from ruby core)
---
    div(value)  -> integer
    div(value, digits)  -> bigdecimal or integer

---

Divide by the specified value.

digits
:   If specified and less than the number of significant digits of the
    result, the result is rounded to that number of digits, according to
    BigDecimal.mode.

    If digits is 0, the result is the same as for the / operator or
    #quo.

    If digits is not specified, the result is an integer, by analogy
    with Float#div; see also BigDecimal#divmod.


See BigDecimal#/. See BigDecimal#quo.

Examples:

    a = BigDecimal("4")
    b = BigDecimal("3")

    a.div(b, 3)  # => 0.133e1

    a.div(b, 0)  # => 0.1333333333333333333e1
    a / b        # => 0.1333333333333333333e1
    a.quo(b)     # => 0.1333333333333333333e1

    a.div(b)     # => 1



      

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.