Download MetaTrader 5
To add comments, please log in or register
Find out how to add a video in the messages editor
qjol
3243
qjol 2014.03.31 05:34  
bottom line it's the same
but if you read the documentation carefully you can see a small difference

string DoubleToString(
double value, // number
int digits=8 // number of digits after decimal point
);

string DoubleToStr(
int value, // value
int digits // precision
);
Simon Gniadkowski
Moderator
17991
Simon Gniadkowski 2014.03.31 07:12  
qjol:
bottom line it's the same
but if you read the documentation carefully you can see a small difference

string DoubleToString(
double value, // number
int digits=8 // number of digits after decimal point
);

string DoubleToStr(
int value, // value
int digits // precision
);
So not specifying the precision for DoublToStr() must return an error 4050 . . . unless the Documentation is incorrect.
qjol
3243
qjol 2014.03.31 07:49  
RaptorUK:
So not specifying the precision for DoublToStr() must return an error 4050 . . .

right (it's supposed to but...)
RaptorUK:
unless the Documentation is incorrect.


and right
Keith Watford
Moderator
9504
Keith Watford 2014.03.31 07:53  

If you enter string DoubleToStr(.....,

the autoparameter info shows int digits=8

so it does suggest that 8 is the default.

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.03.31 08:10  
GumRai:

If you enter string DoubleToStr(.....,

the autoparameter info shows int digits=8

so it does suggest that 8 is the default.


In case no parameters set, yes, 8 is the default.
/ /12
To add comments, please log in or register