/ Published in: C#
URL: http://www.gamedev.net/community/forums/topic.asp?topic_id=383348
Expand |
Embed | Plain Text
Console.WriteLine("|0123456789|\n|{0,10}|", 47.ToString("X4")); // produces the output // |0123456789| // | 002F|
Comments
Subscribe to comments
You need to login to post a comment.

Why this complicated 47.ToString("X").PadLeft(4, '0') ?
Just use
47.ToString("X4")
Thanks!
hi, submitter, could you ask the first question from verence? thanks
sorry ,ask --> answer