I have two doubles, a and b, in C++ that should be equal but for some reason are not being treated as such. The following code:
cout << a << "==" << b << ": " << (a == b) << endl;
is outputting
0.5 == 0.5: 0
Any ideas why this is resolving to false?