Currently, this is supported:
-----
import std.format;
format("%(%.14f, %)", [ 1.1, 2.2, 3.3 ]);
-----
and so is this:
-----
format("%(%10.3f, %)", [ 1.1, 2.2, 3.3 ]);
-----
However, this is not supported:
-----
format("%(%.*f, %)", double.dig, [ 1.1, 2.2, 3.3 ]);
-----
Nor this:
-----
format("%(%*.3f, %)", 5, [ 1.1, 2.2, 3.3 ]);
-----
Basically, any nested specifier that takes an additional argument is not supported, because of the way nested specifiers are implemented.
It would be nice if this could somehow be made to work.
Comment #1 by bugzilla — 2021-03-27T19:23:32Z
*** Issue 20541 has been marked as a duplicate of this issue. ***
Comment #2 by robert.schadek — 2024-12-01T16:33:01Z