Numeric Formatting:Custom Format Strings:Group Separator
using System;
public class GroupSeparator
{
public static void Main()
{
Console.WriteLine("{0:##,###}", 2555634323);
Console.WriteLine("{0:##,000.000}", 14563553.593993);
Console.WriteLine("{0:#,#.000}", 14563553.593993);
}
}
Related examples in the same category