Specifier Meaning
, Group separator
using System;
using System.Text;
using System.Globalization;
class Sample
{
public static void Main()
{
Console.WriteLine("{0:#,###,###}", 12345);
Console.WriteLine("{0:0,000,000}", 12345);
}
}
The output:
12,345
0,012,345