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