Hey guys,
I was wondering if anybody have a solution to do this :
Number in the database : 1000
Show it as : 1K
And so on (1K for between 1000 and 1999, 2K between 2000 and 2999, etc)
Thank you,
Hey guys,
I was wondering if anybody have a solution to do this :
Number in the database : 1000
Show it as : 1K
And so on (1K for between 1000 and 1999, 2K between 2000 and 2999, etc)
Thank you,
One way to do it would be to divide the number by 1000 and then format it with either 0 or 1 deciemal place. Although with 0 decimal places 1500 would round up and show 2K. With 1 decimal place it shows 1.5K.
This topic was automatically closed after 70 days. New replies are no longer allowed.