Project

General

Profile

Actions

Bug #12889

closed

Regression of Ruby 2.4.preview2 string interpolation

Added by ujifgc (Igor Bochkariov) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:77864]

Description

$ ./ruby -v
ruby 2.4.0dev (2016-07-10 trunk 55620) [x86_64-linux]
$ ./ruby -e 'puts ("%01.0f" % 1234567892.0)'
1234567892

https://github.com/ruby/ruby/commit/295f60b94d5ff6551fab7c55e18d1ffa6a4cf7e3

$ ./ruby -v
ruby 2.4.0dev (2016-07-10 trunk 55621) [x86_64-linux]
$ ./ruby -e 'puts ("%01.0f" % 1234567892.0)'
1234567893
Actions #1

Updated by nobu (Nobuyoshi Nakada) over 7 years ago

  • Status changed from Open to Closed

Applied in changeset r56557.


util.c: round to even

Actions

Also available in: Atom PDF

Like0
Like0