Detecting whether a number is divisible by 3 New comment James88 2009.12.14 19:53 Hi, I am trying to get my SQL code to detect whether value x is divisible by three e.g. 6/3 == true 12/3 == true 16/3 == false 20/3 == false How do I do this in mql4 language please? I've search the documentation but can't find anything Thankyou for your help James Permissioning an EA or Indicator Detecting Stop Loss How to Detect & Get Price value of a specific Fibo Level meikel 2009.12.14 19:59 #1 if(MathMod(NumberToCheck,3)==0) Print(NumberToCheck+" is a multiple of 3"); the Mod function is avaiable in every serious programming language.... James88 2009.12.14 19:59 #2 meikel: if(MathMod(NumberToCheck,3)==0) Print(Number+" is a multiple of 3"); the Mod function is avaiable in every serious programming language.... Thankyou so much for you quick reply, have a good evening Dexter 2009.12.14 22:11 #3 Does not % work? New comment
Hi,
I am trying to get my SQL code to detect whether value x is divisible by three
e.g.
6/3 == true
12/3 == true
16/3 == false
20/3 == false
How do I do this in mql4 language please? I've search the documentation but can't find anything
Thankyou for your help
James