Thursday, August 6, 2009

String Format for Double in C#

Help link : http://www.csharp-examples.net/string-format-double/

This is a very helpful to me . I have got lot of things from here ..

Few things i can share here also
e.g.
String.Format("{0:0.00}",123.4567); // 123.46 -- just two decimal places
String.Format("{0:0,0.0}",12345.67); // 12,345.7 --Thousands separator

No comments:

Post a Comment