Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 107
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
Split the string by the "." delimiter.
Not a bad idea...
No need to disassemble anything. Change it to string just to see the right number. You don't need to do anything for calculations.
If you want to make trouble, convert the string back to a StringToDouble() number and multiply by _Point normalized to the right number, probably _Digits
The point is, I need to decompose the string into 3 numbers, and I can't convert it into a number - it turns out to be a very large number for the language.
Here is an example of such a number
Print ("CalcY=",CalcY);
Prints the number 111111111111111104
Maybe I'm in a hurry!
The thing is, you need to decompose the string into 3 numbers, but you can't convert it into a number - it turns out to be a very large number for the language.
Here is an example of such a number
Print ("CalcY=",CalcY);
Prints the number 111111111111111104
Tales...
Try it yourself.
Print ("CalcY=",CalcY);
long CalcZ=StringToInteger("111111111111111111");
Print ("CalcZ=",CalcZ);
double Test=CalcZ;
Print ("Test=",Test);
Try it yourself.
Print ("CalcY=",CalcY);
long CalcZ=StringToInteger("111111111111111111");
Print ("CalcZ=",CalcZ);
double Test=CalcZ;
Print ("Test=",Test);
I mean "too big a number", but the code is not correct either, if it is to be converted from format to format, then it should be:
Print ("CalcY=",IntegerToString(CalcY));
What you are complaining about there is not a big number, but a glitch in the text output.
I mean "too big a number".
Too big a number to calculate accurately - otherwise how do you explain the error at the end of the number?
above added.
So I have this probrazation - you can put a line in long, but I need double for comma calculations.