Formating to Currency Format

Sometimes you need to display the variable value in the currency format. You can easily convert your values to the currently format using only 1 line of code.
double currency = 345566767;
Response.Write(String.Format("{0:C}",currency)); 

Print | posted @ Tuesday, August 23, 2005 1:19 PM

Twitter