Download MetaTrader 5
To add comments, please log in or register
Ask your broker to open the official channel. Thousands of traders will read the news!
Bogdan Alin Baltatu
2739
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
13596
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