Download MetaTrader 5
To add comments, please log in or register
Having troubles understanding the code? Perhaps, you can find an article on that topic!
Bogdan Alin Baltatu
2919
Bogdan Alin Baltatu 2015.03.13 08:32 

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 

whroeder1
14244
whroeder1 2015.03.13 12:30  
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
/
To add comments, please log in or register