Download MetaTrader 5

DoubleToString() digits default value is 0?

To add comments, please log in or register
Download MetaTrader 5 mobile version and trade from anywhere in the world!
Loong
1261
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.
Ilyas
1206
Ilyas 2010.02.22 15:21  

Thank you for message. Fixed.

To add comments, please log in or register