Why Does My Floating Point Number 0.7 Evaluate At Less Than 0.7
- by swamy
void main()
{
float a=0.5,b=0.7;
if(b<0.7)
{
if(a<0.5)
printf("hello");
else
printf("world");
}
else
printf("jsdf");
}
Output: world
Please give the explanation.