I have NSDictionary
with floating values, I am trying to get values like this
[[NSDictionary valueForKey:@"some_value"] floatValue];
but looks like value not rounded correctly.
For example:
I have value in dictionary: @"0.35"
but after above conversion returns 0.34999999403953552 float value
, @"0.15"
converts into 0.15000000596046448
etc.