Fixnum (Class)

In: rational.rb
Parent: Object

Methods

**   quo   rdiv   rpower  

External Aliases

** -> power!

Public Instance methods

[Source]

# File rational.rb, line 333
  def quo(other)
    Rational.new!(self,1) / other
  end
rdiv(other)

Alias for quo

[Source]

# File rational.rb, line 338
  def rpower (other)
    if other >= 0
      self.power!(other)
    else
      Rational.new!(self,1)**other
    end
  end
**(other)

Alias for rpower

[Validate]