how can 0.00665 not equal 0.00665??!!
OK, I must be missing something. How can 0.00665 not equal 0.00665?
I hard code mytemp = 0.00665;
then i read in with cin >> searchValue to be 0.00665
then I test to see if they are equal ( both are double ) and
low and behold the logic says that mytemp is < searchValue!!!!
Even in debug both numbers are identical yet they fail as equal in the logic test:
if ( mytemp == searchValue)...
I will attach the .cpp file.
If I hard code both values into the code then they are equal.
What in the world could be causing this? I have spent all day looking at this and I am at a loss.