The following piece of code outputs 0.1000000000001
But if I add a 10 times asCode:float a=0.1; printf("%lf",a);
It outputs as 0.999999999999989Code:long float b=0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1; printf("lf",b);
But if a=0.1 is stored as 0.1000000000001 then the answer should be greater than 10 due to the 1 in last column.Then why is the output less then 10