Formatting numbers like 10000 as 10k
<p>I have a 5-digit number, like <code>10000</code>, and I want to display it as <code>10k</code>, as I'll eventually have 6 digits (I'm talking about Twitter counts, actually). I suppose I have to substring, but I'm not that used to JavaScript just yet.</p>

<p>Here's just about what I'm trying to use. It basically gets the count of the followers by JSON.</p>

<pre><code>&lt;script type="text/javascript"&gt;
    $(function() {
        $.ajax({
            url: 'http://api.twitter.com/1/users/show.json',
            data: {
                screen_name: 'lolsomuchcom'
            },
            dataType: 'jsonp',
            success: function(data) {
            $('#followers').html(data.followers_count);
                }
        });
    });
&lt;/script&gt;
</code></pre>
