Mega Code Archive

 
Categories / ASP.Net / ADO Database
 

Numeric Format Strings

Type                  Format String                 Example Currency              {0:C}                         $1,234.50                             Scientific            {0:E}                         1.234.50E+004 Percentage            {0:P}                         45.6% Fixed Decimal         {0:F?}                        {0:F3} would be 123.400.                                                      {0:F0} would be 123.