int iIntValue;
double dOrderPrice;
double dResult;
iIntValue = 20;
dOrderPrice = Position.AveragePrice;
dResult = dOrderPrice - (iIntValue / 100);
When I do a Print(dOrderPrice + " : " +dResult + " : " +iIntValue);
I get:
87.69 : 0 : 20
when I expect to get:
87.69 : 0.2 : 20
I should be able to divide an integer and get a double. Is there a reason that this math would not work?
Comment