# How to fix 3 digit for all "double data type" ?

To add comments, please log in or register
359
2014.08.07 23:08

How to set only 1 time for all variables of "double data type" ?

Thank you

14765
2014.08.08 01:04
 sorasit46: How to set only 1 time for all variables of "double data type" ? Posting makes no sense. If you use a automated translation, you must use simple phrases.```double d1; double d2 = 0.0; // OneTimeInitialization (constant) : int init(){   d1 = OneTimeInitialization(); // Calculated. }```
Moderator
9640
2014.08.08 02:52
sorasit46:

How to set only 1 time for all variables of "double data type" ?

Thank you

time would be considered a datetime variable

Did you mean "once" when you wrote "1 time" ?

But I still don't understand the question.

359
2014.08.08 04:03
GumRai:

time would be considered a datetime variable

Did you mean "once" when you wrote "1 time" ?

But I still don't understand the question.

Sorry!

"1 time" mean "1 action or 1 command"

Moderator
18003
2014.08.08 06:47
sorasit46:

Sorry!

"1 time" mean "1 action or 1 command"

You mean . . . "How to fix 3 digit for all "double data type" ?"  where are you seeing more than 3 digits ?  doubles are inherently many digits due to the way they are stored.  If you want 3 digits when you Print() or Comment() you have to convert the output to 3 digits using something like DoubleToStr(double, 3)  if you want 3 digits shown for an Indicator then read this: IndicatorDigits
To add comments, please log in or register