NumberFormatInfo.Percent Decimal Separator
using System;
using System.Globalization;
class NumberFormatInfoSample {
public static void Main() {
NumberFormatInfo nfi = new CultureInfo( "en-US", false ).NumberFormat;
Double myInt = 0.1234;
Console.WriteLine( myInt.ToString( "P", nfi ) );
nfi.PercentDecimalSeparator = " ";
Console.WriteLine( myInt.ToString( "P", nfi ) );
}
}
//12.34 %
//12 34 %
Related examples in the same category