News for hackers. Stuff that matters.
Re:Low Level Bit Hacks You Absolutely Must Know by thankthunk on Friday May 11, 2018 @06:31PM (#17051193)
It feels natural to anyone who understands binary numbers. Every odd number in binary will have the last bit as 1. Just like in the decimal system, every number that is a multiple of 10 will has the last digit as 0. If you want to see if a number is a multiple of ten, I guess you could do a mod 10 of the number and see if the remainder is 0. But if you understand the decimal system, you would just naturally check if the last digit is 0.

There are no comments on this comment yet.