![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I simply try to do a simple 2 / 100 = 0.02, but it returns 0.0
try this
MessageBox("2/100: " + (string)(2.0/100.0) + "\n0.02");
I'm aware, that works.
Problem is doing calculations ran in the code of one of my EA's, I for some reason now have to specify these changes, which in no way was required for me before hand.
Just a few weeks ago my 2/100 = 0.02, but now its 0.
This is an issue and I imagine it would be for many who are recompiling their code.
I'm aware, that works.
Problem is doing calculations ran in the code of one of my EA's, I for some reason now have to specify these changes, which in no way was required for me before hand.
Just a few weeks ago my 2/100 = 0.02, but now its 0.
This is an issue and I imagine it would be for many who are recompiling their code.
https://www.mql5.com/en/docs/basis/types/casting
Before operations (except for the assignment ones) are performed, the data are converted into the maximum priority type. Before assignment operations are performed, the data are cast into the target type.