writef: How to output hex byte?

Nick Sabalausky a at a.a
Sat Aug 28 21:32:18 PDT 2010


I'm having trouble understanding the docs on this. From what I could tell, 
it seemed like both of these should work:

writef("%.2X", myByte);
writef("%02X", myByte);

But both of them just simply print the format string as-is. 




More information about the Digitalmars-d-learn mailing list