class Float

When mathn is required, Float is changed to handle Complex numbers.

Public Instance Methods

**(other) click to toggle source

Exponentiate by other

# File rake/lib/mathn.rb, line 316
def ** (other)
  if self < 0 && other.round != other
    Complex(self, 0.0) ** other
  else
    power!(other)
  end
end
Also aliased as: power!
power!(other)
Alias for: **