In my application, i tried to convert NSString value to float using
NSString *value = [dict objectForKey:@"student_Percentage"];
float f = [value floatValue];
But I’m getting the value of f as 0.00000. I tried with NSNumberFormatter, NSNumber… but still get 0.00000.
[dict objectForKey:@"student_Percentage"]value should be like 8.9.Remove double quotes from your string.