I have a simple comparison of two double numbers. The same comparison when put in println function gives the correct response (see in the output) but the same comparison if assigned to a boolean value gives a wrong response;
I tried to compare numbers inside if condition, in a boolean variable, in reverse for (i.e: gone > MAX_MOVE) but every time it fails.
Could someone please tell me what is wrong?
I have narrowed down a bug in 20,000 lines of code to this and I can not figure out the reason.
Thank you. Mac
PhD Candidate: Distributed and Parallel Systems, Simulation and Modeling