Type:
Class

Bignum objects hold integers outside the range of Fixnum. Bignum objects are created automatically when integer calculations would otherwise overflow a Fixnum. When a calculation involving Bignum objects returns a result that will fit in a Fixnum, the result is automatically converted.

For the purposes of the bitwise operations and [], a Bignum is treated as if it were an infinite-length bitstring with 2's complement representation.

While Fixnum values are immediate, Bignum objects are not—assignment and parameter passing work with references to objects, not the objects themselves.

When mathn is required Bignum's division and exponentiation are enhanced to return more precise values from mathematical expressions.

eql?

big.eql?(obj) â true or false Instance Public methods Returns true

2015-03-31 11:58:45
coerce

coerce(p1) Instance Public methods MISSING: documentation

2015-03-31 11:44:40
remainder

big.remainder(numeric) â number Instance Public methods Returns the remainder

2015-03-31 12:36:57
<=>

big numeric â -1, 0, +1 or nil Instance Public methods ComparisonâReturns

2015-03-31 11:06:01
modulo

big.modulo(other) â Numeric Instance Public methods Returns big modulo other

2015-03-31 12:25:36
^

big ^ numeric â integer Instance Public methods Performs bitwise +exclusive

2015-03-31 11:34:53
**

big ** exponent â numeric Instance Public methods Raises big to

2015-03-31 10:31:54
abs

big.abs â aBignum Instance Public methods Returns the absolute value of big

2015-03-31 11:41:19
==

big == obj â true or false Instance Public methods Returns true

2015-03-31 11:08:42
inspect

inspect(p1 = v1) Instance Public methods Alias for:

2015-03-31 12:13:49