How do I do this in Objective-C? .... To really convert from a string to a number properly, you need to use an instance of NSNumberFormatter ...
stackoverflow.com