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