DEV Community

Discussion on: Why was 0110 afraid of 0111?

Collapse
 
jvarness profile image
Jake Varness • Edited

Hey Juneau, sure I can!

The numbers are binary. From the rightmost bit to the leftmost, you add the numbers up in powers of 2 given the position of the number (starting with 0) as the exponent.

0110 = (0 * 2^3 ) + (1 * 2^2 ) + (1 * 2^1 ) + (0 * 2^0 ) = 0 + 4 + 2 + 0 = 6

So 0110 = 6, 0111 = 7, 1000 = 8, and 1001 = 9.

Does the joke make sense now?

Collapse
 
voidjuneau profile image
Juneau Lim • Edited

Oh...... I actually got that far, but didn't know the 789 jokes.
After I saw your comment, I got more lost (since I thought it might be something with the operator, not the value itself) and googled, and gotch.
Poor myself... I should go to bed and cry a bit.

Thread Thread
 
jvarness profile image
Jake Varness

Lol I'm sorry, I misinterpreted what part of the joke you didn't understand.

It's a corny joke anyhow πŸ˜‚

Thread Thread
 
voidjuneau profile image
Juneau Lim

Thanks for putting such effort explaining it. It’s so kind of you.πŸ˜‰