number.ToString("p") and culture

There is a leading space in en-US culture by using number.ToString("p"), to remove this leading space, use below code instead:

String.Format("{0:0%}", number)


reference:

http://stackoverflow.com/questions/6229087/using-c-sharp-string-format-0p0-without-the-leading-space-before-percentage

你可能感兴趣的:(number.ToString("p") and culture)