Forum

0 != 0.00000 ??

Any idea why this code snippet gives the below output? double result = currentStopLoss - prevBarTrendDown; if(result== 0) { Print("Result is 0"); } else { Print("Result is not 0: " + DoubleToStr(result, Digits)); } [/CODE] Output's : [CODE]Result is not 0: 0.00000