Is this a bug?

 

The terminal I'm using is MT4 build 1170 but this also compiles MT5.


double lotsplitpercent = 60 / 100;   //returns 0 ??? 


I'm sure it used to return 0.6  for splitting 60% of open lots.

My workaround for today is..


double lotsplitpercent = 60 * .01;

 

Calculations using only integers will be cast as an integer.

double lotsplitpercent = 60.0 / 100;

will give you the result you expect