Project

General

Profile

« Previous | Next » 

Revision f72be814

Added by mrkn (Kenta Murata) over 7 years ago

internal.h: change the default rounding mode to half-up

  • internal.h (ROUND_DEFAULT): changed to RUBY_NUM_ROUND_HALF_UP.
    [Bug #12958] [ruby-core:78204]

  • test/ruby/test_integer.rb: fix assertions for the above change.

  • test/ruby/test_rational.rb: ditto.

  • test/test_mathn.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e