APIdock
/
Ruby
/
Browse
About
class
Integer
v1_9_1_378
-
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
lib/yaml/rubytypes.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
round
succ
times
to_i
to_int
to_r
to_yaml
truncate
upto
Class methods
each_prime
from_prime_division