Computers are meant to be good at arithmetic, aren't they? Why does this print "False"?
double d2 = 0.000001;
Console.WriteLine((d1-d2)==1.0);
Computers are meant to be good at arithmetic, aren't they? Why does this print "False"?
Console.WriteLine((d1-d2)==1.0);
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Akkiraju IvaturiPosted Sep 7, 2012, 11:21 PM