Format Articles

Formatting Numerical Data in C#

C# ships with several inbuilt formatting specifies which can be used to quickly format a number, for example the ‘c’ specifier will format the number as a currency: double dbl1 = 9999999.9999999; outputStr = string.Format(“This is the currency format {0:c}”, dbl1); This will output the numerical value as a currency based on the user’s current […]

Read more