Hello! How can I efficiently learn MQL? I'm not looking for easy ways, I just want to understand it! I'm studying Kovalev's tutorial, watching videos, trying to repeat the codes that are prescribed in it. But there are so many mistakes even when I repeat the code from the tutorial..... . I understand that I have been upgraded. I was told that this site can help me, so I am here! What should I do?
Alexey Kozitsyn: Split the string by the "." delimiter.
Not a bad idea...
Alexey Viktorov: 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
long CalcY=StringToDouble("111111111111111111"); Print ("CalcY=",CalcY);
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
long CalcY=StringToDouble("111111111111111111"); Print ("CalcY=",CalcY);
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.