Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more
Object
When mathn is required, Fixnum's division and exponentiation are enhanced to return more precise values from mathematical expressions.
2/3*3 # => 0 require 'mathn' 2/3*3 # => 2
Exponentiate by other
other
# File mathn.rb, line 78 def ** (other) if self < 0 && other.round != other Complex(self, 0.0) ** other else power!(other) end end
This page was generated for Ruby 1.9.3
Ruby-doc.org is provided by James Britt and Neurogami. Maximum R+D.
Generated with Ruby-doc Rdoc Generator 0.44.0.