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.
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