Open MosheBerman opened 11 years ago
Yeah, I bet i could simplify it a bit using the NSDecimalNumber instead of an NSNumber and an NSNumberFormatter, however, I'm no looking to turn 12.456
into 12,46
, I'm looking to turn it into €12,46
(or something similar) so I need to use the NSLocale to get the currency symbol and append it wherever it needs to go on the number.
I'd love to see how you would improve this using NSDecimalNumber! Please send me a pull request!
Isn't this built in to the iOS SDK?