Formatted output not on screen but in a string

Adam D. Ruppe destructionator at gmail.com
Fri May 21 22:45:14 UTC 2021


On Friday, 21 May 2021 at 22:37:34 UTC, Alain De Vos wrote:
> Next code format a string and prints it.
> But I want the formatted string stored in a string
> ```
> //Decimal place separator %,
> writefln!"%,s"(123456789);
> //123,456,789
> ```

std.format.format


More information about the Digitalmars-d-learn mailing list