mirror of
https://github.com/ruby/ruby.git
synced 2025-09-22 03:53:58 +02:00
* 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:
parent
e15b3c83b8
commit
a3ffe9698b
5 changed files with 16 additions and 3 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue