Posted By

strelaras on 03/06/13


number format precision format-digits

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Number formatting

 / Published in: C#


(More examples to be added)

  1. // See also: Standard Numeric Format Strings:
  2. int i = 99;
  3. Console.WriteLine("{0:d3}", i); // 099

Report this snippet  

You need to login to post a comment.