Convert string to float in Objective-C
The proper way of doing this is
NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];
numberFormatter.numberStyle = NSNumberFormatterDecimalStyle;
float value = [numberFormatter numberFromString:@"32.12"].floatValue;
your_float = [your_string floatValue];
EDIT:
try this:
NSLog(@"float value is: %f", your_float);