-@

-@ Instance Public methods Return the negation of self. e.g. b = -a b == a * -1

/ 2

div(value, digits)quo(value) Instance Public methods Divide by the specified value. e.g. c = a.div(b,n) 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 ::mode. If digits is 0, the result is the same as the / operator. If not, the result is an integer BigDecimal, by analogy with Numeric#div. The alias quo is provided since div(value, 0) is the same as computing the quotient; see #di

<

a Instance Public methods Returns true if a is less than b. Values may be coerced to perform the comparison (see ==, #coerce).

<=

a Instance Public methods Returns true if a is less than or equal to b. Values may be coerced to perform the comparison (see ==, #coerce).

<=>

<=>(p1) Instance Public methods The comparison operator. a <=> b is 0 if a == b, 1 if a > b, -1 if a < b.

==

==(p1) Instance Public methods Tests for value equality; returns true if the values are equal. The == and === operators and the eql? method have the same implementation for BigDecimal. Values may be coerced to perform the comparison: ::new('1.0') == 1.0 -> true

===

===(p1) Instance Public methods Tests for value equality; returns true if the values are equal. The == and === operators and the eql? method have the same implementation for BigDecimal. Values may be coerced to perform the comparison: ::new('1.0') == 1.0 -> true

&gt;

a > b Instance Public methods Returns true if a is greater than b. Values may be coerced to perform the comparison (see ==, #coerce).

&gt;=

a >= b Instance Public methods Returns true if a is greater than or equal to b. Values may be coerced to perform the comparison (see ==, #coerce)

_dump

_dump Instance Public methods Method used to provide marshalling support. inf = BigDecimal.new('Infinity') => #<BigDecimal:1e16fa8,'Infinity',9(9)> BigDecimal._load(inf._dump) => #<BigDecimal:1df8dc8,'Infinity',9(9)> See the Marshal module.