Project

General

Profile

Actions

Bug #4035

closed

format() の %a 指定子で幅指定が正しく機能しないことがある

Added by tadf (tadayoshi funaba) over 13 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-11-07 trunk 29711) [i686-linux]
Backport:
[ruby-dev:42552]

Description

=begin
format() の %a 指定子で幅指定が正しく機能しないことがある。

format('%#10.0f', -0.5).tap{|x| p x.size}
11
#=> " -0."
=end

Actions #1

Updated by tadf (tadayoshi funaba) over 13 years ago

=begin
%a ではなく、%f でした。
=end

Actions #2

Updated by naruse (Yui NARUSE) over 13 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r29719.
tadayoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0