Try this code
printf(StringFormat("int1=%i, int2=%d, double=%f",0.00356,(int)(0.00356*10000),0.00356));In future compiler will check parameters with format (first parameter of StringFormat function)
mql5:
Try this code
In future compiler will check parameters with format (first parameter of StringFormat function)Thank you.
It came to me I should cast it myself to be sure.
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 saw StringFormat doesn't print correctly a double as an int.
For example:
and it yields:
is this correct or is it a bug?