Posted By

strelaras on 03/06/13


Tagged

number format precision format-digits


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

danfinrud55


Number formatting


 / Published in: C#
 

URL: http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx

(More examples to be added)

  1. // See also: Standard Numeric Format Strings: http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx
  2. int i = 99;
  3. Console.WriteLine("{0:d3}", i); // 099

Report this snippet  

You need to login to post a comment.