APIdock
/
Ruby
/
Browse
About
class
Integer
v1_9_2_180
-
Show latest stable
- Superclass:
Numeric
Integer
is the basis for the two concrete classes that hold whole numbers,
Bignum
and
Fixnum
.
Files
lib/prime.rb
numeric.c
rational.c
Related methods
Instance methods
ceil
chr
denominator
downto
even?
floor
gcd
gcdlcm
integer?
lcm
next
numerator
odd?
ord
pred
prime?
prime_division
rationalize
round
succ
times
to_i
to_int
to_r
truncate
upto
Class methods
each_prime
from_prime_division