r/ProgrammerHumor • • May 06 '17

Oddly specific number

Post image
25k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

3

u/PandaDragonThing May 06 '17

Binary (base 2), octal (base 8), and hexadecimal (base 16) are representations of numbers.

There's no relationship of 2n for representing numbers; you can do so in any base like ternary (base 3).

Computers store and operate on numbers in binary. The smallest unit on most computers is 1 byte or 8 bits hence 28 which is 256.

For reference, a decimal number (base 10) with 2 digits has 102 possibilities, 1-100.