Download MetaTrader 5

Double values - page 2

To add comments, please log in or register
neverman
89
neverman  
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 ?

Alain Verleyen
Moderator
32530
Alain Verleyen  
Which version is your MetaEditor ?
neverman
89
neverman  
version 5 Build 966
Keith Watford
Moderator
10570
Keith Watford  
neverman:
version 5 Build 966

Same
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI  
Same here.
graziani
2007
graziani  

use #property strict.

neverman
89
neverman  
Great work graziani and thank you ... it works finally !!
12
To add comments, please log in or register