* 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
@ -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>
|
Fri Jun 20 02:11:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* string.c (str_gsub): should preserve last successful match
|
* 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)
|
neard = self.denominator.to_f ** (1.0/other.denominator.to_f)
|
||||||
loop do
|
loop do
|
||||||
if (neard**other.denominator == self.denominator)
|
if (neard**other.denominator == self.denominator)
|
||||||
dem = neaed
|
dem = neard
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user