actionscript 3 - 1000 to 1k, 1000000 to 1m etc. number abbreviation -


how can have 1000 convert 1k or 1200 1.2k? there's other solution other programming language can't figure out how make work as3.

or there shorter way rather if number > 1000 make 1k?

couldn't this

var numink = bignumber/1000 + "k"; 

maybe throw in math.round or other checks avoid ridiculous numbers 3.3333333k


Comments

Popular posts from this blog

C# random value from dictionary and tuple -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -