remove numbres double

 
what happens is that is that need make a program that takes an integer for example 1.345678 and remove the value of 78 or another example 2.346798 and remove the 98.
 

No question here.

edit: also 1.345678 is not an integer. 2.346798 isn't either.

double value = 2.346798;

value = MathFloor(value*10000)/10000;

//value = 2.3467

 
NormalizeDouble - MQL4 Documentation
 

and the value is a variable I


example:


1.345678


double a=78;

print(a);

// output 78


other example:

2.346798

double a=98;

print(a);

//output 98


 
string chars = stringsubstr(doubletostring(2.346798), getstringlen(doubletostring(2.346798))-2, 2);

int number = stringtodouble(chars);
Reason: