writefln question

Regan Heath regan at netwin.co.nz
Sat Mar 18 01:54:56 PST 2006


On Sat, 18 Mar 2006 09:05:17 +0000 (UTC), Nick <Nick_member at pathlink.com>  
wrote:
> In article <ops6k3babk23k2f5 at nrage.netwin.co.nz>, Regan Heath says...
>>
>> FYI, you can use:
>>   writefln("number = %.8x", cast(ulong)9);
>>
>> to get the result you want. This is how I typically pad my hex numbers.
>
> That's exactly what he does already :-)

Damn copy+paste making me look silly again. I meant to paste in:

writefln("number = %08x", cast(ulong)9);

Regan



More information about the Digitalmars-d-learn mailing list