**(other)
click to toggle source
power!(other)
click to toggle source
quo(other)
click to toggle source
If Rational is defined, returns a Rational number instead of a Fixnum.
def quo(other)
Rational.new!(self,1) / other
end
rdiv(other)
click to toggle source
rpower(other)
click to toggle source
Returns a Rational number if the result is in
fact rational (i.e. other
< 0).
def rpower (other)
if other >= 0
self.power!(other)
else
Rational.new!(self,1)**other
end
end