The class for long integers, limited only by memory size. Bignums converted into fixnums automatically if the value fits in, or vise versa. For the purpose of shift and mask operations, a binary representation is assumed, and negative numbers are represented in a 2's complement, which gives the illusion of an infinite string of sign bits extending to the left. Mixed calculation of Floats and Bignums, sometimes makes an error.
self + other
self - other
self * other
self / other
self % other
self ** other
Arithmetic operators. Addition, subtraction, multiplication, division, remainder, power, respectively.
~ self
self | other
self & other
self ^ other
Bit manipulations. Bit reverse, bit or, bit and, bit xor, respectively.
self << bits
self >> bits
Shift operators, shift bits
-bit to left and
right, respectively.
divmod(other)
Returns an array contains the division and the modulo.