Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualKhatharr

Posted 13 December 2012 - 09:30 PM

To test for odd vs even don't use modulation. Just binary-and with 1.

0 & 1 = 0
1 & 1 = 1
2 & 1 = 0
3 & 1 = 1
4 & 1 = 0
5 & 1 = 1

#1Khatharr

Posted 13 December 2012 - 09:30 PM

To test for odd vs even don't use modulation. Just binary OR with 1.

0 | 1 = 0
1 | 1 = 1
2 | 1 = 0
3 | 1 = 1
4 | 1 = 0
5 | 1 = 1

PARTNERS