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

add

        # BigDecimal.add

(from ruby core)
---
    add(value, ndigits) -> new_bigdecimal

---

Returns the BigDecimal sum of `self` and `value` with a precision of
`ndigits` decimal digits.

When `ndigits` is less than the number of significant digits in the sum,
the sum is rounded to that number of digits, according to the current
rounding mode; see BigDecimal.mode.

Examples:

    # Set the rounding mode.
    BigDecimal.mode(BigDecimal::ROUND_MODE, :half_up)
    b = BigDecimal('111111.111')
    b.add(1, 0)               # => 0.111112111e6
    b.add(1, 3)               # => 0.111e6
    b.add(1, 6)               # => 0.111112e6
    b.add(1, 15)              # => 0.111112111e6
    b.add(1.0, 15)            # => 0.111112111e6
    b.add(Rational(1, 1), 15) # => 0.111112111e6



      

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.