[ruby-cvs:61639] nobu:r54477 (trunk): numeric.c: dbl2ival no longer rounds

nobu at ruby-lang.org nobu at ruby-lang.org
Sun Apr 3 09:34:31 JST 2016


nobu	2016-04-03 09:34:31 +0900 (Sun, 03 Apr 2016)

  New Revision: 54477

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

  Log:
    numeric.c: dbl2ival no longer rounds
    
    * numeric.c (flodivmod): round division if it is a finite number
      and module is required.
    * numeric.c (dbl2ival): do not round here.
    * numeric.c (flo_ceil): use dbl2ival.
    * numeric.c (flo_round): round explicitly.

  Modified files:
    trunk/ChangeLog
    trunk/numeric.c


More information about the ruby-cvs mailing list