odd and even numbers

dunbarx at aol.com dunbarx at aol.com
Mon Aug 5 16:20:01 EDT 2013


Hi.



Just ask yourself this"



answer testNumber mod 2


If you get a "1", testnumber is odd, if a "0", even.


Craig Newman




-----Original Message-----

From: william humphrey <bill at bluewatermaritime.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Mon, Aug 5, 2013 4:17 pm
Subject: odd and even numbers


How do you test a number to see if it is a whole odd or even number?

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 




More information about the use-livecode mailing list