Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search
8 replies = new reply since forum marked as read
Highlight: NoneDon't highlight anything 5 newestHighlight 5 most recent replies
Happy Halloween! Or, if you're a programmer, merry Christmas! 🎃🎄 Do you understand this joke? (Original Post) steve2470 Oct 2018 OP
Sorry, used to hex or binary conversions. AJT Oct 2018 #1
decimal 25 equals octel 31 nt Fresh_Start Oct 2018 #2
25 in base 10 numbering system is represented as 31 in base 8 rurallib Oct 2018 #3
Not a programmer but I think it's like this dragonlady Oct 2018 #4
Related joke krispos42 Oct 2018 #5
.. unblock Oct 2018 #6
It is simple,.. do you live in a vacuum ? (smirk) magicarpet Oct 2018 #7
Easy. sinkingfeeling Oct 2018 #8

krispos42

(49,445 posts)
5. Related joke
Wed Oct 31, 2018, 11:09 AM
Oct 2018

A programmer finished up at work for the day and calls his wife to see if she wants him to pick anything up on the way home. She says "Stop by the store and pick up a gallon of milk. If they have eggs, get a dozen."

He went home with 12 gallons of milk.

unblock

(54,151 posts)
6. ..
Wed Oct 31, 2018, 11:50 AM
Oct 2018


i guess they had eggs



when she gets upset, does he dare to tell her she needs to write better specs?



magicarpet

(16,512 posts)
7. It is simple,.. do you live in a vacuum ? (smirk)
Wed Oct 31, 2018, 11:51 AM
Oct 2018

Why do programmers always mix up Halloween and Christmas? Because Oct 31 = Dec 25.
The joke here is that Octal 31 (which abbreviated looks like October 31st, Halloween) is equal to Decimal 25 (which abbreviated looks like December 25th, Christmas).

Decimal and octal are two number systems with different bases.

Decimal is the base-10 number system that everyone is familiar with. A number system has as many digits as its base number. That means a base-10 number system 10 digits (0, 1, 2, 3, 4, 5, 6, 7, 8, and 9) and is where it gets its name from (decimal, from Latin decimus, means tenth).

When you get to a number that is higher than the highest digit, you add another column to the left, so you count like 8, 9, 10, 11, 12, and so on.

Octal (from the Latin root oct- meaning eight) is a base-8 number system commonly used in programming. A base-8 system means it has 8 digits (0, 1, 2, 3, 4, 5, 6, and 7). When you get to a number higher than 7, you also add another column, so you count like 6, 7, 10, 11, 12, and so on.

If we convert the octal 31 to decimal, we end up with 25. Watch: if we break octal 31 out to a math equation, it ends up being 3 x 81 + 1 x 80 = 3 x 8 + 1 x 1 = 24 + 1 = decimal 25.

To convert the other way, you start with the biggest power of the base (8, in this case) you can divide by and get a whole number, then take that and divide the remainder by the next smaller power until you get to the 0-th power. Then you just combine the digits together. In the case of 25, we need to start at 81: 25 / 81 = 3, remainder of 1 / 80 = 1, so 31.

Latest Discussions»Help & Search»Computer Help and Support»Happy Halloween! Or, if y...