I'll have a double.

 

I just saw the following occur in some [double related] code I'm writing.

EDIT: Removed since it contained incorrect info

This is real bad. That means, the only way I can do the above comparison safely is

EDIT: Removed since it contained incorrect info

And if I wanted to compare for equality (for example, checking if a value is 0), I'd need to do:

EDIT: Removed since it contained incorrect info
 
All your questions/problems are answered here -> https://www.mql5.com/en/articles/1561.
 
gordon:
All your questions/problems are answered here -> https://www.mql5.com/en/articles/1561.

Hi Gordon. Thank you for the link. That did indeed solve my problem. (I updated my original post since it contained incorrect info).
Reason: