CSharp Numeric Format Strings – ADO.Net Database

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

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.