|
|
|
Back to Index
|
prev
-
up
-
next
-
index
-
Bignum
-
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.
-
SuperClass
-
- Integer
-
Methods:
-
-
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.
prev
-
up
-
next
-
index
matz@netlab.co.jp
|
|
|
|
© 2002-2004 Active-Venture.com
Website Hosting
Service
|
| |
|
Buy domain name - Buy domain
name at only $5.95/yr with comprehensive domain hosting services. |
Domain registration - Domain registration and domain
search service from $5.95 |
Register domain
name -
Cheap domain name registration and domain transfer service |
|
|
|
Disclaimer: This
documentation is provided only for the benefits of our website hosting customers.
For authoritative source of the documentation, please refer to http://www.ruby-doc.org/docs/
|
|
|