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/trunk@17448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5336cbdfd3
commit
e76afc29d8
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri Jun 20 02:16:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/mathn.rb (Rational::power2): typo fixed. [ruby-core:17293]
|
||||
|
||||
Fri Jun 20 02:11:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* string.c (str_gsub): should preserve last successful match
|
||||
|
|
|
@ -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