Project

General

Profile

Actions

Bug #8916

closed

rb_sprintf への精度指定が正しく機能していない

Added by tadf (tadayoshi funaba) over 11 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.0dev (2013-09-16 trunk 42949) [i686-linux]
[ruby-dev:47714]

Description

rb_sprintf への精度指定が正しく機能していない。

rb_sprintf("%.04d", -2) /* => "-002" */
format('%.4d', -2) #=> "-0002"
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0