Download MetaTrader 5

NormalizeDouble bug?

To add comments, please log in or register
Bogdan Alin Baltatu
2937
Bogdan Alin Baltatu  

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
15331
whroeder1  
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