J
jp2msft
I know how to format a string to use decimal places:
Code:
Console.WriteLine(string.Format("$ {0:0.00}", 4));
Output:
$ 4.00
How would I format a string to use the Thousands Separator?
for (int i = 0; i < 1000000; i++) // zero to one million
{
Console.WriteLine(string.Format("$ {0:voodoo}", i));
}
What would I replace "voodoo" with?
Thanks.
Code:
Console.WriteLine(string.Format("$ {0:0.00}", 4));
Output:
$ 4.00
How would I format a string to use the Thousands Separator?
for (int i = 0; i < 1000000; i++) // zero to one million
{
Console.WriteLine(string.Format("$ {0:voodoo}", i));
}
What would I replace "voodoo" with?
Thanks.