Joined April 2013
·

Jacob Hayes

Software Engineer
·
Kansas City, MO
·
·
·

Posted to Determine Parity without Modulus over 1 year ago

This is the same thing as num % 2 as binary is base 2, so the rightmost bit would be what's left over when divided by two. Perhaps compilers and interpreters take this into account when performing optimization on mod operations, giving little difference (performance wise) between the two.

Achievements
49 Karma
0 Total ProTip Views
Interests & Skills