Project

General

Profile

Actions

Bug #3965

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-10-19 trunk 29536) [i686-linux]
Backport:

Description

=begin
format() の # フラグを伴う %a 指定子で小数点が印字されない。

format('%#.0a', 1) #=> "0x1p+0"

となり、小数点が出ません。

format('%#.0f', 1) #=> "1."
format('%#.0e', 1) #=> "1.e+00"

といったように、'%#.0a' では、0x1.p+0 となる筈だと思います。
=end

Actions #1

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 r29537.
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
Like0