No, no, no, no, no, no, no, no, no.
Use NSNumberFormatter. That is why it exists. -floatValueand -doubleValueare just quick and temporary fixes, but they fail. For instance:
NSLog(@"%f", [@"123" floatValue]);
NSLog(@"%f", [@"abc" floatValue]);
NSLog(@"%f", [@"0" floatValue]);
NSLog(@"%f", [@"42" floatValue]);
NSLog(@"%f", [@"42x" floatValue]);
-floatValue (@"0") (@"abc").
NSNumberFormatter, , nil, , NSNumber, . , , , . -floatValue .
. : NSString NSNumber