NumberFormatInfo.Currency Group Separator
using System;
using System.Globalization;
class NumberFormatInfoSample {
public static void Main() {
NumberFormatInfo nfi = new CultureInfo( "en-US", false ).NumberFormat;
Int64 myInt = 123456789;
Console.WriteLine( myInt.ToString( "C", nfi ) );
nfi.CurrencyGroupSeparator = " ";
Console.WriteLine( myInt.ToString( "C", nfi ) );
}
}
//$123,456,789.00
//$123 456 789.00
Related examples in the same category