diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-08 05:02:31 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-08 05:02:31 +0000 |
commit | 6baa27a6a20f3f49a853536daa4ed33594a39ce7 (patch) | |
tree | 4b6026f8e6eb5e5eec56cc29cc114385699a229d /lib | |
parent | 78492e51d818c193eb0b2a2546c6016c07a46fcd (diff) |
merge revision(s) 27087:
* ext/rational/lib/rational.rb: fix [Bug #1397].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@28205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rational.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rational.rb b/lib/rational.rb index 69a3b76bf1..6f61f14027 100644 --- a/lib/rational.rb +++ b/lib/rational.rb @@ -387,7 +387,7 @@ class Rational < Numeric # Converts the rational to a Float. # def to_f - @numerator.to_f/@denominator.to_f + @numerator.fdiv(@denominator) end # |