看看http://www.nasdaq.com/或http://finance.yahoo.com/似乎正好在数字之间没有空格的百分号是常见的:)
看看http://msdn.microsoft.com/en-us/library/system.globalization.numberformatinfo.percentpositivepattern.aspx
它可能取决于文化,默认(不变)为n%
看看http://www.nasdaq.com/或http://finance.yahoo.com/似乎正好在数字之间没有空格的百分号是常见的:)
看看http://msdn.microsoft.com/en-us/library/system.globalization.numberformatinfo.percentpositivepattern.aspx
它可能取决于文化,默认(不变)为n%
这对我有用:
System.Globalization.CultureInfo newCulture = (System.Globalization.CultureInfo)System.Threading.Thread.CurrentThread.CurrentCulture.Clone(); newCulture.NumberFormat.PercentPositivePattern = 1; // Avoid putting a space between a number and its percentage System.Threading.Thread.CurrentThread.CurrentCulture = newCulture;