Project

General

Profile

« Previous | Next » 

Revision dfe91fcd

Added by nobu (Nobuyoshi Nakada) over 7 years ago

numeric.c: round to nearest even

  • numeric.c (flo_round, int_round): support round-to-nearest-even
    semantics of IEEE 754 to match sprintf behavior, and add half:
    optional keyword argument for the old behavior.
    [ruby-core:76273] [Bug #12548]

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