Possible duplicate:
stack overflow
How can I format numbers in C #, so 12523.57 becomes "12K", 2323542.32 becomes "2M", etc.?
I do not know how to add the correct numerical abbreviation (K, M, etc.) and show the corresponding numbers?
So,
1000 = 1K 2123.32 = 2K 30040 = 30k 2000000 = 2M
Is there a built-in way in C # for this?
c # number-formatting
Teradact
source share