Bug in the NormalizeDouble function

 
If U use this:

NormalizeDouble((3.3-2.0)/2,1) = 0.6

if U use this:

NormalizeDouble((1.3)/2,1) = 0.7

why ????

OccsE
 
other pair is ok

NormalizeDouble((3.5-2.0)/2,1) = 0.8

NormalizeDouble((1.5)/2,1) = 0.8
 

Makes you wonder what 1.0+1.0 equals

http://docs.sun.com/source/806-3568/ncg_goldberg.html

 
the good result is 2.0

if it doesnt 2.0, we have a problem with mql4. (yes I know its not so plain)
 

Another discussion

'int x = double y ?'

 
phy:

 


Another discussion


'int x = double y ?'



U R the best!

THX !!!!
Reason: