DoubleToStr() Problem
since Time is an integer !
So Change to :
DoubleToStr(1.0*(TimeCurrent()-OrderOpenTime())/86400.0,2);
since Time is an integer !
So Change to :
DoubleToStr(1.0*(TimeCurrent()-OrderOpenTime())/86400.0,2);
You agree to website policy and terms of use
I am trying to write to file the string DaysOpen with with precision to 2 decimal places. In the FileWrite line, both DaysOpen and StrToDouble(DaysOpen) write to flle only single interger. Example: 0.02 wrties 0 and 1.25 writes 1.
Please advise. Thank you in advance.