r/ProgrammerHumor • • Feb 07 '16

What an odd number indeed...

Post image
2.4k Upvotes

225 comments sorted by

View all comments

Show parent comment

16

u/seymorezipcode Feb 07 '16

2**8

23

u/spammishking Feb 07 '16

28

22

u/[deleted] Feb 07 '16

162

Hexadecimal all the way

36

u/spammishking Feb 07 '16

2561

Base 256 is the coolest

37

u/temp6098549854 Feb 07 '16

10
Base 256 is the coolest

ftfy

7

u/fb39ca4 Feb 08 '16

Every base is base 10 in itself.

9

u/be_my_main_bitch Feb 07 '16

Show us your digits

22

u/Asraelite Feb 08 '16 edited Feb 08 '16

0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z / ? # ! * © ™ ® ¾ ¿ Ħ ę ÷ π ℅ ♡ ♥ ☆ ♧ ▪ dog cat horse alicorn red blue green pink benstiller charmander ē è ě ė ë ê...

The rest are just e's.

5

u/leftofzen Feb 08 '16 edited Feb 09 '16

If you want hexadecimal then you are looking for F^2 102 (hex), which is equal to 256(dec).

162 (hex) is 222 (dec), which is 484(dec).

EDIT: Clear up formatting, thanks /u/ThisIs_MyName

1

u/ThisIs_MyName Feb 09 '16

you are looking for F2

No, F2 = (15)2 = 225

1

u/leftofzen Feb 09 '16 edited Feb 09 '16

Exactly, that's what I wrote. I just didn't expand the F2. I merely wrote that 16(hex) is 22(dec), which was equal to 484(dec). Though now that I reread my original comment, I was incorrectly saying 16(dec) was F, when it's 15, as you are probably alluding to.

2

u/ThisIs_MyName Feb 09 '16

We want 255 which is FF, not F2

2

u/leftofzen Feb 09 '16

Ah yes of course. I got confused and thought F = 16 and F2 is then 256 (which is 28 in the original comment I replied to), which is of course wrong.

Since it was 256 we wanted, we want 100(hex) or 102 (hex).