mcuevas
asked on
Checking for even or odd number.
Is there a quick way to check if a number is even or odd?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
or bitwise
Even = (YourNumber AND 1)=0
Even = (YourNumber AND 1)=0
ASKER
that's what I was looking for, thanks.
number mod 2 = 0 ' for even
number mod 2 = 1 ' for odd