Alias for rpower
If Rational is defined, returns a Rational number instead of a Fixnum.
[Source]
# File rational.rb, line 508 def quo(other) Rational.new!(self,1) / other end
Alias for quo
Returns a Rational number if the result is in fact rational (i.e. other < 0).
# File rational.rb, line 514 def rpower (other) if other >= 0 self.power!(other) else Rational.new!(self,1)**other end end
[Validate]