Binary & Hexadecimal
Teens & adults Computing Number systems
Decimal is base 10: each digit worth 10× the one to its right. Binary is base 2 — only 0 and 1 — because a transistor is either off or on. Hexadecimal (hex) is base 16: digits 0–9 plus A–F for 10–15.
Reading binary
Hex is binary in disguise
One hex digit = exactly 4 binary bits. That's why programmers use it — compact but instantly convertible:
Converting decimal → binary
Repeatedly halve, keep the remainders, read bottom-up:
13 → 6 r1 → 3 r0 → 1 r1 → 0 r1 → reads
1101 = 13.
$FF3300 hex colors and
0x04 C-style hex — this is the math underneath both.
Binary 1101 in decimal = ___
Hex $FF in decimal = ___
Decimal 10 in binary = ___ (digits only)
One hex digit represents how many binary bits?
Next: floating point · Back: the unit circle