thanks for your reponse william, but i was already aware of the difference between the function and predefined variable. Maybe I wasnt as clear in my wording of my question.
I know that the function Digits() is "trivially" slower, however, I noticd while coding, that "Digits" and "_Digits" are both colour Magenta...
Are both of these "non functions", predefined variables? is there a difference between using "Digits" or "_Digits"?
In MT5, there is no Digits. There is only the function Digits() and the variable _Digits. MQL5 Reference → Predefined Variables
Why did you post your MT4 question in the Root / MT5 General
section instead of the MQL4 section, (bottom of the Root page?)
General rules and best
pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely
move this thread there soon.
In MT4 there are both since Build 600 and Higher. 2014.02.03
If you read the manual, you should know that there is no difference. MQL4 Reference → Predefined Variables
if i realised that those were not in mt5, then i would have put this q in the mt4 section.
i appreciate the link for predefined variables, however, your attitude stinks. always with the attitude in your responses. you can take
your attitude and jam it.
And since when did we believe what we read in the mt4 manual anyway? many times in past you have described at length many codes that didnt do as the manual says they do.
Please refine your netettiquette or have your responses moderated beforre posting, PLEASE.
- You know whether you are using MT5 or MT4. You mislead everyone.
- Your wasting everyone's time "stinks." You could have RTFM and answered your own question. Added to my do not help list. You "jam it."
Please explain to me, while coding, if and when i would use "Digits"?
and if and why I may use _Digits instead?
There is no difference in speed. The compiler inside * .ex5 code leads both types to one call.
There is no difference in speed. The compiler inside * .ex5 code leads both types to one call.
Thank you Vladimir
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Please explain to me, while coding, if and when i would use "Digits"?
and if and why I may use _Digits instead?