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.
Akkiraju IvaturiRank #474 · 5.2K pointsPosted Sep 7, 2012, 7:21 PM EDT