Integer division
sd59:
MQL4 documentation identifies this problem but the trouble is it doesn't say the correct way to get the right answer!!
Is the only way to get the right answer to declare x & y as 'double' even though in the program they are clearly integers?
z = x/(double)y;
Doh! The simplest things.......Thanks!
MQL4 documentation identifies this problem but the trouble is it doesn't say the correct way to get the right answer!!
Is the only way to get the right answer to declare x & y as 'double' even though in the program they are clearly integers?