Mathematical Operations With Function Values

 

Hi,

I'm trying to extract two values within my e.a but I fail.Let me explain;

First value is obtained by iCustom function= A (for example 1.9749)

Second value is obtained by iClose function=B ( for exampe 1.9700)

Result = C

C= A-B;

Result is always" 0"

When I try this operation by random numbers, I get correct results.

Like : double A= 1.9740;

double B= 1.9700;

result = 0.0040

What is the problem with working values obtained by functions?Any I idea?

 

It would help if you could post the piece of code that is failing.


CB

 
cloudbreaker:

It would help if you could post the piece of code that is failing.


CB

I fixed the code.No problem now.Thanks CB!..