diff options
author | stomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-06 19:58:12 +0000 |
---|---|---|
committer | stomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-06 19:58:12 +0000 |
commit | f495fe4fc024c0d398a6291bfdecc7634198a75a (patch) | |
tree | 0af5154ef65f8856a609662986684f09cea72c69 /test/rss/test_taxonomy.rb | |
parent | 7c0dcecb394d84e37b26e8272e7a22ec33836046 (diff) | |
download | ruby-f495fe4fc024c0d398a6291bfdecc7634198a75a.tar.gz |
make Integer#{round,floor,ceil,truncate} always return integer
* numeric.c (int_round): return integer (self) instead of float
for Integer#round with positive ndigits argument, because
conversion to float introduces errors for large integers.
* numeric.c (int_floor): ditto for Integer#floor.
* numeric.c (int_ceil): ditto for Integer#ceil.
* numeric.c (int_truncate): ditto for Integer#truncate.
* test/ruby/test_integer.rb: adjust test cases and add some more.
[ruby-core:80645] [Bug #13420]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss/test_taxonomy.rb')
0 files changed, 0 insertions, 0 deletions