diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-05 09:49:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-05 09:49:39 +0000 |
commit | 73b3a8497c97cb6a9ed76cc52733a98f7791c9b0 (patch) | |
tree | d209f0b546e45cb8d8fa7fc2bbbb5044e53e2c8f /test/ripper/test_files.rb | |
parent | 5710defbe621766796d973b9ef6451a94d6d7eff (diff) | |
download | ruby-73b3a8497c97cb6a9ed76cc52733a98f7791c9b0.tar.gz |
numeric.c: round to nearest even
* numeric.c (flo_round, int_round): support round-to-nearest-even
semantics of IEEE 754 to match sprintf behavior, and add `half:`
optional keyword argument for the old behavior.
[ruby-core:76273] [Bug #12548]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ripper/test_files.rb')
0 files changed, 0 insertions, 0 deletions