Jake Varness

Posted on

Why was 0110 afraid of 0111?

Because 0111 1000 1001!!! π

Top comments (6)

Ben Halpern

Bender would make this joke

Juneau Lim

I really don't want to ruin the fun by TMI, but at the same time, really want to laugh together. Would you kindly explain it to this poor code newbie? (At least I have knowledge about binary and its operations.)

Jake Varness • Edited on

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?

Juneau Lim • Edited on

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

Jake Varness

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

It's a corny joke anyhow π

Thread

Juneau Lim

Thanks for putting such effort explaining it. Itβs so kind of you.π

Are you capable of chipping in across sysadmin, ops, and site reliability work, while supporting the open source stack that runs DEV and other communities?

This role might just be for you!

Apply now