javasaurus: (Default)
[personal profile] javasaurus
Found on the net...

Question:

Why do computer programmers confuse Hallowe'en and Christmas?

Answer:

Because oct31=dec25.

Date: 2005-10-19 04:39 pm (UTC)
From: [identity profile] acroyear70.livejournal.com
oct = octal notation -- the only digits you have are 0-7, so "10" = 8 and "20" = 16, "100" = 64.

hex is the same, with 16 numbers per digit, 0-9, A=10, F=15.

dec is decimal, at its latin root: dec = 10. its the number system we normally use.

so where oct 31 = 3*8 + 1 = 25.

dec 25 = 2 * 10 + 5 = 25.

oct and hex are standards in computers, especially at the hardware level, because it makes dealing with "binary" (where instead of 10, 8, or 16, each digit represents 2) much easier.

i can go hex2A instead of 00101010 and its much easier to see what's happening for us with experience at these things.

Date: 2005-10-19 05:50 pm (UTC)
From: [identity profile] wilhelmina-d.livejournal.com
Huh. Interesting. Learn something new every day!

Profile

javasaurus: (Default)
javasaurus

June 2012

S M T W T F S
     12
3456 789
101112 13141516
17181920212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 17th, 2025 01:29 am
Powered by Dreamwidth Studios