<分区>
Possible Duplicate:
Format Number like StackoverFlow (rounded to thousands with K suffix)
如何在 C# 中格式化数字,使 12523.57 变为“12K”,2323542.32 变为“2M”等?
我不知道如何附加正确的数字缩写(K、M 等)并显示适当的数字?
所以,
1000 = 1K
2123.32 = 2K
30040 = 30k
2000000 = 2M
C# 中是否有内置的方法来执行此操作?