Numeric is the abstract class for the numbers.
Object
Comparable
+ self
Returns self.
- self
Returns negation of self.
self <=> other
Returns -1, 0, or 1 depending on whether the left argument is numerically less than, equal to, or greater than the right argument.
abs
Returns absolute value of self.
chr
Returns the string that contains the character represented
by that Integer(self) in the ASCII character set.
For example, 65.chr is "A".
coerce(number)
Converts self and the number into
mutually calculatable numbers.
divmod(other)
Returns a pair of the quotient and remainder by other.
integer?
Returns true if the receiver is integer.
nonzero?
Returns false on zero, the self otherwise.
to_f
Converts self into a floating-point number.
to_i
Returns an integer converted from self.
zero?
Returns true on zero.