Class

BigDecimal extends the native Integer class to provide the to_d method.

When you require the BigDecimal library in your application, this methodwill be available on Integer objects.

Add double dispatch to Integer

This class is the basis for the two concrete classes that hold whole numbers, Bignum and Fixnum.

Class Methods

Iterates the given block over all prime numbers.

See Prime#each for more details.

Re-composes a prime factorization and returns the product.

See Prime#int_from_prime_division for more details.

Instance Methods
An alias for to_i