Flood19:
Hi, I don't know where to send it, so I'm posting it here.
In this page, https://docs.mql4.com/convert/stringtointeger
The explanation says: "into number of int (integer) type." and the return value is supposed to be long.
And on a personal note, I think those functions are bugged...
I will soon open a post with a problem I'm having when using the functions StrToDouble/StringToDouble, because I'm having such a weird issue with those...
- This is a user's forum not Metaquotes.
- Can someone please advise where I send a Request for Support to Metaquotes. - MQL4 forum
- Get in touch with developers using Service Desk! - MQL5 forum
- Report it to the service desk. 'MQL5.community - User Memo' - an article about the algorithmic/automated trading in MetaTrader
- Report it to the Service Desk, not us users.
-
Use the link button
I agree it was misnamed; in my standard include, I wrote: /// What `StringToInteger()` actually returns. #define StringToLong(text) StringToInteger(text)
Then I only use the define and then the cast makes sense: int value = (int) StringToLong(text);
- "functions are bugged" "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires - meaningless. There are no mind readers here.
- "having such a weird issue" Same thing. Print the argument and the return value and find out why.
Flood19:
StrToDouble/StringToDouble - unfortunately those "identical" pairs may behave differently, as I painfully learnt with StringSetChar/StringSetCharacter.
No hahaha, I just noticed it when taking a look at those.
I will soon open a post with a problem I'm having when using the functions StrToDouble/StringToDouble, because I'm having such a weird issue with those...
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
Hi, I don't know where to send it, so I'm posting it here.
In this page, https://docs.mql4.com/convert/stringtointeger
The explanation says: "into number of int (integer) type." and the return value is supposed to be long.
And on a personal note, I think those functions are bugged...