#Numbers
Numbers take the form of Fixnum
, Bignum
(Class: Integer from Class: Numeric) or Float
(Class: Numeric) there are others but they are part of the Standard Library, these are Complex
, BigDecimal
and Rational
- these are not covered here. I can't be arsed. Sooo...
ruby-1.9.2-p0 > 5.class
=> Fixnum
ruby-1.9.2-p0 > 5453897348957348957389457389457398.class
=> Bignum
ruby-1.9.2-p0 > 5.0.class
=> Float