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