NormalizeDouble bug?

Back to topics list To post a new topic, please log in or register
avatar
41
dudufx 2015.03.13 09: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 

avatar
12995
WHRoeder 2015.03.13 13: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
Back to topics list  

To add comments, please log in or register