Double values - page 2

 
GumRai:

Ï put this in a script and ran it on FXPro demo account

 result

 

 All print with 5 digits

I think that you are doing something in your code to change the value 

 


same code here gives other result:


2014.08.15 17:46:39.268    test-3 GBPUSD,M1: Bid is 1.6695.  Ask is 1.6698
2014.08.15 17:46:39.268    test-3 GBPUSD,M1: 1.6695


So where is the difference ? my version of MT4 is 4 build 670.

Let's see math results on the captures.


From the entire post, have no yet the answer why Print(double variable) gives only 4 digits, but Print (DoubleToStr(double variable,Digits) gives 5 variable.

Also Why there is difference between my results and those of GumRai, when we have same software, save broker server ?

 
Which version is your MetaEditor ?
 
version 5 Build 966
 
neverman:
version 5 Build 966

Same
 
Same here.
 

use #property strict.

 
Great work graziani and thank you ... it works finally !!
Reason: