I've a small problem and I can't find a solution!
My code is (this is only a sample code, but my original code do something like this):
float x = [@"2.45" floatValue]; for(int i=0; i<100; i++) x += 0.22; NSLog(@"%f", x);
the output is 52.450001 and not 52.450000 !
I don't know because this happens!
Thanks for any help!
Thanks to everybody! Yes, I've solved with the double type!
Observe a File or Folder in Objective-C