* numeric.c (flo_round): fix for negative value.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-05-29 06:09:08 +00:00
parent e15b3c83b8
commit a3ffe9698b
5 changed files with 16 additions and 3 deletions

View file

@ -322,6 +322,7 @@ class TestFloat < Test::Unit::TestCase
assert_equal(11100.0, 11111.1.round(-2))
assert_equal(10**300, 1.1e300.round(-300))
assert_equal(-10**300, -1.1e300.round(-300))
end
VS = [