if (N % 4 == 0){ Alert("It is 4 times value"); }If the remainder of N divided by 4 is 0, then it is a multiple of 4.
Thank you! but what does this mean?
N % 4
Thank you! but what does this mean?
% is a arithmetic symbol to find the remainder of the division.
Same as
MathMod(N, 4)
Module division is the remainder from the division (A - int(A/B)*B).
Perhaps you should read the manual. MQL5 Reference → Language Basics → Operations and Expressions → Precedence Rules
How To Ask Questions The Smart Way. 2004
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
% is a arithmetic symbol to find the remainder of the division.
Same as
Wow, I have learned a new code.
Thank you very much!
Module division is the remainder from the division (A - int(A/B)*B).
Perhaps you should read the manual. MQL5 Reference → Language Basics → Operations and Expressions → Precedence Rules
How To Ask Questions The Smart Way. 2004
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
Thank you!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, I want to know if the value is 4 ,8,12,16 .... 4 times XXXXX
For example, I have 13.
Can you help?