[Issue 10881] Support %f formatting for a std.complex.complex

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 30 15:18:05 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10881


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #11 from bearophile_hugs at eml.cc 2013-08-30 15:18:01 PDT ---
(In reply to comment #10)
> Commit pushed to master at https://github.com/D-Programming-Language/phobos

Now using this formatting string, for the given matrix:
"[%([%(%1.3f, %)],\n %)]]"

It outputs:

[[0.707+0.000i, 0.707+0.000i, 0.000+0.000i],
 [0.000-0.707i, 0.000+0.707i, 0.000+0.000i],
 [0.000+0.000i, 0.000+0.000i, 0.000+1.000i]]

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list