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.
- double type problem
- vps signals
- CODE FOR TREND
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);
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register