"No formatting: " + theDecNumber.ToString();
"Currency formatting: " + theDecNumber.ToString("C");
"Exponential formatting: " + theDecNumber.ToString("E");
"Fixed-point formatting: " + theDecNumber.ToString("F2");
"General formatting: " + theDecNumber.ToString("G");
"Number formatting to 2 decimal places: " + theDecNumber.ToString("N2");
"Number formatting to 3 decimal places: " + theDecNumber.ToString("N3");
"Number formatting to 4 decimal places: " + theDecNumber.ToString("N4");
"Percent formatting: " + theDecNumber.ToString("P0");
Thursday, October 9, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment