why this behave like this Code: void main() { double a=0.0; int i; for(i=0;i<=9;i++) { a+=0.1; } printf("%lf",a);//--------------->1.000000 if(a==1.000000) printf("yes"); else printf("no"); } ouput--------no why output is always no. please explain it.
Also Don't jump into an article with your query and place it in the right forum so that all can respond. I have moved your post this time.