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