std.format expand "%s"

jmh530 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 22 09:08:12 PDT 2017


On Monday, 21 August 2017 at 15:39:04 UTC, Steven Schveighoffer 
wrote:
>
> What I mean is that %s goes to %d for isIntegral!(typeof(x)), 
> and %s goes to %g for isFloatingPoint!(typeof(x)), and stays as 
> %s for everything else.
>
> Given this, you could probably write the function you were 
> looking for.
>
> -Steve

I realized I was more interested in the length of the result than 
the type.


More information about the Digitalmars-d-learn mailing list