Getzy
You are hereCustom Numeric Format Strings
By stoneseq - Posted on 29 November 2013
int value = 123; Console.WriteLine(value.ToString("\\#\\#\\# ##0 dollars and \\0\\0 cents \\#\\#\\#")); Console.WriteLine(String.Format("{0:\\#\\#\\# ##0 dollars and \\0\\0 cents \\#\\#\\#}", value)); // Displays ### 123 dollars and 00 cents ###
style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-2949935375931860" data-ad-slot="8663824462">
Delivered by FeedBurner
href="http://statcounter.com/drupal/" target="_blank"> class="statcounter" src="http://c.statcounter.com/7999760/0/fe7507d3/0/" alt="drupal stats">