CarlRostron:
I'm pretty sure that 6/100 is 0.06 though?
it is cast to an int.
Try 6/100.0
Bingo!!
Seriously - I'd never have thought of that.
Really appreciate your help, genuinely.
I'll keep my eye out for that Rookie mistake in the future.
Enjoy your weekend my friend.
CarlRostron: . I'm pretty sure that 6/100 is 0.06 though?
No.
On
MT4 v434, division quotient don't give floating point values(Bug??) - MQL4 programming forum
2012.09.18
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
Hi All,
I've been staring at this for the last hour and cannot fathom why I cannot get the value of =6/100 to Print to screen. It keeps Printing as zero?
I've tried 4 different ways to print to the screen but they all don't work and obviously something I'm not doing correctly.
And these are my outputs:
You can see that the Printed value is always zero. I'm pretty sure that 6/100 is 0.06 though?
Please any help is really appreciated.