it's time to change how things are printed
Steven Schveighoffer
schveiguy at yahoo.com
Thu Nov 18 13:39:23 PST 2010
On Thu, 18 Nov 2010 16:25:28 -0500, Don <nospam at nospam.com> wrote:
> Steven Schveighoffer wrote:
>> I'd suggest trying one of those other format types without the numeric
>> parts.
>> -Steve
>
> writefln("z = %f z2 = %f", z, z2);
> z = 10+1.5e-06i z2 = 10.000000+0.000001i
> writefln("z = %e z2 = %e", z, z2);
> z = 10+1.5e-06i z2 = 1.000000e+01+1.500000e-06i
> writefln("z = %a z2 = %a", z, z2);
> z = 10+1.5e-06i z2 = 0x1.4p+3+0x1.92a737110e454p-20i
Then I agree, it doesn't work.
-Steve
More information about the Digitalmars-d
mailing list