diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-29 22:48:15 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-29 22:48:15 +0000 |
commit | c101436215d4df12f9c63e2a800a37ce16649fb7 (patch) | |
tree | 2a8c75b129fb4ab02d143aea70095a2766eb3f55 /test | |
parent | cca6b1d3769835b70670c208bf18365d27812738 (diff) |
merges r31158 from trunk into ruby_1_9_2.
--
* numeric.c (flo_round): fix inaccurate results.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_float.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb index b465814140..ab5f9bdc07 100644 --- a/test/ruby/test_float.rb +++ b/test/ruby/test_float.rb @@ -295,6 +295,8 @@ class TestFloat < Test::Unit::TestCase assert_equal(1.110, 1.111.round(2)) assert_equal(11110.0, 11111.1.round(-1)) assert_equal(11100.0, 11111.1.round(-2)) + + assert_equal(10**300, 1.1e300.round(-300)) end VS = [ |