NumberFormatInfo.Percent Group Separator
using System;
using System.Globalization;
class NumberFormatInfoSample {
public static void Main() {
NumberFormatInfo nfi = new CultureInfo( "en-US", false ).NumberFormat;
Double myInt = 1234.5678;
Console.WriteLine( myInt.ToString( "P", nfi ) );
nfi.PercentGroupSeparator = " ";
Console.WriteLine( myInt.ToString( "P", nfi ) );
}
}
//123,456.78 %
//123 456.78 %
Related examples in the same category