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

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

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