I am reading from a txt file and populating a core data entity.
At some point I have read the value form the TXT file and the value is @"0.9"
.
Now I assign it to a CGFloat.
CGFloat value = (CGFloat)[stringValue floatValue];
debugger shows value as 0.89999997615814208 !!!!!!?????
why? bug? Even if it things [stringValue floatValue]
is a double, casting it to CGFloat should not produce that abnormality.