NumberFormatInfo.Number Decimal 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( "N", nfi ) );
nfi.NumberDecimalSeparator = " ";
Console.WriteLine( myInt.ToString( "N", nfi ) );
}
}
//123,456,789.00
//123,456,789 00
Related examples in the same category