MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Conversion functions  DoubleToStr

 
string DoubleToStr( double value, int digits)
Returns text string with the specified numerical value converted into a specified precision format.
Parameters:
value   -   Floating point value.
digits   -   Precision format, number of digits after decimal point (0-8).
Sample:
  string value=DoubleToStr(1.28473418, 5);
  // the value is "1.28473"