Objective C display money format like Sensible Soccer

Posted by worchyld on Stack Overflow See other posts from Stack Overflow or by worchyld
Published on 2010-05-11T13:19:55Z Indexed on 2010/05/11 13:24 UTC
Read the original article Hit count: 399

Filed under:
|
|

I'm wanting to display money like SWOS (or Sensible World of Soccer) used to.

IE: Instead of: $10,000,000+ you got $10m, 10.5m, etc.

Instead of: $1,000,000 you got $1m

Instead of: $1,500,000 you got $1.5m

It also worked for both large and smaller figures, say; 1k, 1.25k, 0.75k, 0.25k, etc.

I'm wondering, is there a way to display money in a format that is similar to the way SWOS used to do it?

Thanks.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about money