Download MetaTrader 5

DoubleToString() digits default value is 0?

To add comments, please log in or register
Loong
1284
Loong  

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.
Ilyas
1202
Ilyas  

Thank you for message. Fixed.

To add comments, please log in or register