Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Bertha Ferguson   on Dec 09 In Asp.net Category.

  
Question Answered By: Beaudi Smith   on Dec 09


double d = 12345.6789;
string s = d.ToString("C");

s now equals "$12,345.68"

MSDN info on Formatting Numerics.
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconstandardnumericformatstrings.asp

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on How can I prevent data trancation? Or get search suggestion and latest updates.


Tagged: