Math class and module hierarchy : Number class « Number « Ruby

Math class and module hierarchy

                |              |
              Numermic       Matrix
    |           |                      |         |
 Fixnum         Bignum                 complex    Rational
(math Module)   (Precision module


Related examples in the same category

1.Numbers are classes
2.Number Introduction
3.Ruby has a number of classes and modules related to numbers.
4.floor Returns the largest integer less than or equal.
5.infinite? Returns nil,1,or +1 depending on whether flt is finite.
6.modulo(numeric): Synonym for Float#%.