Like described in title, is there any way to format huge number like 1,000,000 (1 mln) or 45,500,000 (45,5 mln) to string to display shortened version of this number name. I just want to prevent all advices to do it manually. I know how to do this that way. I just want to find out if there is any easier way using NSNumberFormatter.
Cheers,
Lukasz
I would suggest a combination of manual and using NSNumberFormatter. My idea is to subclass NSNumberFormatter. If the number you are formatting is > 1,000,000, you can divide it, use the super implementation to format the result, and append ” mln” to the end. Only do the part which you can’t have done for you.