add

add(value, digits) Instance Public methods + Add the specified value. e.g. c = a.add(b,n) c = a + b 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.

abs

abs() Instance Public methods Returns the absolute value. BigDecimal('5').abs -> 5 BigDecimal('-3').abs -> 3

_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.

&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)

&gt;

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

===

===(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

&lt;=&gt;

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

&lt;=

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).

&lt;

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