title: Format NSNumber as __ k/M/B
body: <p>I am working on an app and I want to format a number such as 1,000,000 as a short string.</p>
  
  <p>Some examples would be:</p>
  
  <pre><code>1000 =&gt; "1k"
  50000 =&gt; "50k"
  83952 =&gt; "84k"
  1000000 =&gt; "1m"
  1000000000 =&gt; "1b"
  </code></pre>
  
  <p>I was thinking the best way to do this would be using a <a href="https://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/NSNumberFormatter_Class/Reference/Reference.html#//apple_ref/occ/instm/NSNumberFormatter" rel="nofollow">NSNumberFormatter</a> or just rounding it then counting the number of "0"'s.  Anyone have an example of using a NSNumberFormatter in this manner or any resources to get started.</p>