NSString *str = @"37.3336";
float f = [str floatValue];
f is 37.3335991.
Aside from rounding this myself, is there a way to get the exact float value from a NSString?
NSString *str = @"37.3336";
float f = [str floatValue];
f is 37.3335991.
Aside from rounding this myself, is there a way to get the exact float value from a NSString?