number.ToString("p") and culture,
分享于 点击 37298 次 点评:84
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
相关文章
- 暂无相关文章
用户点评