[ruby-cvs:64204] mrkn:r57038 (trunk): internal.h: change the default rounding mode to half-up

mrkn at ruby-lang.org mrkn at ruby-lang.org
Sat Dec 10 11:36:16 JST 2016


mrkn	2016-12-10 11:36:16 +0900 (Sat, 10 Dec 2016)

  New Revision: 57038

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57038

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

  Modified files:
    trunk/internal.h
    trunk/test/ruby/test_integer.rb
    trunk/test/ruby/test_rational.rb
    trunk/test/test_mathn.rb


More information about the ruby-cvs mailing list