I would like to know that why float datayppe never stores exact value that is assigned to them?
for eg-> A piece of code
main()
{
float a=.07;
if (a<0.7)
printf("mismatc h");
else
printf("C is precise");
}
Output: mismatch
for eg-> A piece of code
main()
{
float a=.07;
if (a<0.7)
printf("mismatc h");
else
printf("C is precise");
}
Output: mismatch
Comment