1.1.2 · D1How Computers Work

Foundations — Hexadecimal and octal — conversions, why they're used

1,883 words9 min readBack to topic

Before you can read the parent topic, you need to own a handful of symbols and pictures. We build each one from nothing, in an order where every idea rests on the one before it. Nothing here is assumed — if the parent used it, we define it.


1. A digit — the atom

Why the topic needs it: hexadecimal and octal are just different-sized menus of digits. Octal's menu has 8 boxes; hexadecimal's has 16 boxes. Everything else is bookkeeping about how many boxes exist.


2. The base — how big the menu is

Figure — Hexadecimal and octal — conversions, why they're used

Look at the figure: four number lines, one per base, each ticking off its own menu. Notice hexadecimal needs letters because it runs out of the usual ten symbols before it fills 16 boxes.


3. Place value — why a digit's position changes its worth

Figure — Hexadecimal and octal — conversions, why they're used

Look at the figure: the digits of (in decimal) each sit on a stair-step. The rightmost step is worth , the next , the next . The number is the total once you multiply each digit by its step-height and add.

Why "powers of the base" and not something else? Because each position is one full menu wider than the position to its right. After you exhaust a menu of size in the units place, you carry into the next place — so the next place counts in groups of , the one after in groups of , and so on. That is literally what measures.


4. The exponent notation — a compact "multiply-by-itself" tally

Why the topic needs it: place value is impossible to state without it. And the reason hex and octal are special is a fact about powers: and . Those exponents ( and ) are exactly the "chop sizes" — 3 bits per octal digit, 4 bits per hex digit.


5. The summation symbol — "add up a whole row"

Let's earn every piece of the notation:


6. A bit — the digit of base-2

Why the topic needs it: computers store everything as rows of these lights. The parent note's entire purpose is making long rows of lights readable by chopping them into groups.

Figure — Hexadecimal and octal — conversions, why they're used

Look at the figure: the eight lights of a byte are fenced into two groups of 4. Each fence's worth of lights maps straight to one red hex digit underneath. Nothing crosses the fence — that "no carrying between groups" is the whole shortcut.


7. Two operations behind decimal→base conversion

The parent's "repeated division" trick uses two symbols. Both are about splitting a number into whole part and leftover.

Why the topic needs it: the leftover marbles () are always a valid single digit of base (it's between and ), and it's exactly the units digit . Remove it (keep the full cups) and repeat to peel off the next digit. That is why repeated division reproduces the digits — bottom-to-top.


Prerequisite map

2^3 and 2^4

group of 4 or 3

peel digits

Digit - one symbol from a menu

Base b - menu size

Power b^i - staircase step height

Place value - position sets worth

Summation - add the whole row

Bit - a base-2 digit, a light

Floor divide and remainder

Hex and Octal conversions

Read it top-down: digits and base define what a numeral is; powers and place value tell you what each position is worth; summation totals them (base→decimal); bits + grouping give the power-of-2 shortcut; floor/remainder give decimal→base. All arrows feed the parent topic.


Equipment checklist

Test yourself — each line is question ::: answer. If any answer surprises you, re-read that section before the parent note.

What does the base of a number system tell you?
How many distinct digits are in the menu (base-2 has 2, base-16 has 16).
Why does hexadecimal use the letters ?
It needs 16 distinct symbols but only has ten inherited digits, so letters stand for the quantities 10–15.
What is for any base , and why?
It is — zero steps from the units place means no multiplication, so you're still at 1.
In the master equation , what does mean?
The digit sitting places left of the rightmost (units) position.
What does the symbol instruct you to do?
Run through all positions, multiply each digit by its place value , and add every piece.
What is a bit, pictured physically?
A single base-2 digit — one light that is either off (0) or on (1).
Why do exactly 4 bits correspond to one hex digit?
Four bits show patterns (0–15), matching the 16 values of one hex digit — a one-to-one map, no arithmetic.
What does give you, and why is it a digit?
The remainder after removing whole groups of ; it lies between and , so it is always a legal base- digit (the units digit).
What does do in repeated division?
Keeps only the whole groups (drops the fraction), removing the units digit so the next remainder is the next digit up.

Connections

  • Positional notation and place value — the staircase and the master equation live here.
  • Binary number system — the row of bits these foundations decode.
  • Bytes and memory addressing — why a byte's 8 bits split into two hex digits.
  • Bitwise operations and masks — reading bits in fixed groups.
  • Back to parent: Hinglish version.