mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/mathn.rb (Rational::power2): typo fixed. [ruby-core:17293]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
192f6fd421
commit
ed536836db
11 changed files with 292 additions and 128 deletions
|
@ -201,7 +201,7 @@ class Rational
|
|||
neard = self.denominator.to_f ** (1.0/other.denominator.to_f)
|
||||
loop do
|
||||
if (neard**other.denominator == self.denominator)
|
||||
dem = neaed
|
||||
dem = neard
|
||||
break
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue