Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Defined in:
- lib/rational.rb,
lib/rational.rb
Instance Method Summary collapse
-
#quo(other) ⇒ Object
(also: #rdiv)
If Rational is defined, returns a Rational number instead of a Float.
-
#rpower(other) ⇒ Object
(also: #**)
Returns a Rational number if the result is in fact rational (i.e.
other
< 0).