Download MetaTrader 5

get decimal numbers

To add comments, please log in or register
izmtad
7
izmtad  

Hi,

I m new in programming and i need your helps please,

Is there a method or a code to get the decimal point of a double number 

Ex:  double number is 1.3247 and what i need is the 3247.

BR.

Keith Watford
Moderator
10568
Keith Watford  

    double number=1.3247;
    double decimal=number - MathFloor(number);
    Print( decimal);



will give you the decimal value

To add comments, please log in or register