Download MetaTrader 5

How to get the value in digits

To add comments, please log in or register
Blackburn
26
Blackburn  

Hi,

I'm fairly new in MQL is there a way to get the exact value of the Digit variable let's say for EU 1.3050, is there a way to get 3050 or can I do it by splicing the variable?

Thanks in advance!

Carl Schreiber
7239
Carl Schreiber  
double value    = 1.3050,
       reminder = (value - MathFloor(value))/Point;
Blackburn
26
Blackburn  
@gooly thanks will give that a try :)
To add comments, please log in or register