diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/rational.rb | 2 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Tue Jun 8 14:00:33 2010 Keiju Ishitsuka <keiju@ruby-lang.org> + + * ext/rational/lib/rational.rb: fix [Bug #1397]. + Tue Jun 8 13:40:04 2010 Tadayoshi Funaba <tadf@dotrb.org> * lib/date.rb (Date#>>): fixed. [ruby-core:28011] 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 # @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2010-06-08" #define RUBY_VERSION_CODE 187 #define RUBY_RELEASE_CODE 20100608 -#define RUBY_PATCHLEVEL 270 +#define RUBY_PATCHLEVEL 271 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |