Use standard numeric format specifier: N
using System;
using System.Globalization;
public class ParseInt32
{
public static void Main()
{
int value = -11111;
string specifier;
specifier = "N";
Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier));
}
}
//N: -11,111.00
Related examples in the same category