Q: Understanding the output number of digits when dividing two floats I'm trying to compare a float-result from a division with another float which is identical to the output but when I compare them I get an unmatching result.
Here is what I have... 
float num1 = 7.000000;
float num2 = 15.000000;
float result = num1 / num2;

NSLog(@"Result: %f", result);// output Result: 0.466667    

float num3 = 0.466667;

if (result == num3)
{
   NSLog(@"Equal");
}
else
{
   NSLog(@"NOT Equal");
}

As you can see I'm comparing the result from the division with an identical number but when I do the comparison I get "NOT Equal",  but if I change num3 to 0.4666666667 the comparison becomes "Equal" which I understand is the right answer. 
My question is, why does the output of the result comes as 0.466667 and not as 0.4666666667 if it is really what the result should be?
Thanks a lot
