NormalizeDouble bug?

 

Hi,

I use NormalizeDouble function and sometimes don't work. I put a print screen below from my code in debug mode.

This is an bug?

 

 

NormalizeDouble 

 
dudufx: I use NormalizeDouble function and sometimes don't work. I put a print screen below from my code in debug mode.

This is an bug?

  1. No it's not a bug, it's your not understanding floating point and that some numbers can't be represented exactly. (like 1/10.) Double-precision floating-point format - Wikipedia, the free encyclopedia
  2. The == operand. - MQL4 forum
  3. Do NOT use NormalizeDouble, EVER. For ANY Reason. It's a kludge, don't use it. It's use is always wrong
Reason: