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.
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?