When I run the following code ,
NSString* s= @\"10000000.01\";
float f = [s floatValue];
double d = [s doubleValue];
if(f > 10000000)
{
NSLog(@\"Ove
Double
Float
The appropriate floating-point type to use depends on the nature and range of values you need to work with in your code. In situations where either type would be appropriate, Double is preferred.