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!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?