DoubleToString() digits default value is 0? New comment Loong 2010.02.22 13:47 MQL5 document said the default value is 8, but seem actually set 0 as default. DoubleToString Converting numeric value into text string. string DoubleToString( double value, // number int digits=8 // number of digits after decimal point );You can test the Script PositionInfoSample. Get the precious value of MACD. How do I format decimal places? Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes Ilyas 2010.02.22 15:21 #1 Thank you for message. Fixed. New comment
MQL5 document said the default value is 8, but seem actually set 0 as default.
DoubleToString
Converting numeric value into text string.
string DoubleToString(
double value, // number
int digits=8 // number of digits after decimal point
);