Number Systems Overview
Binary (Base 2): Digits 0 and 1
Decimal (Base 10): Digits 0 to 9
Hexadecimal (Base 16): Digits 0–9 and Letters A–F
(A = 10, B = 11, C = 12, D = 13, E = 14, F = 15)
Decimal to Binary
Divide the decimal number by 2 repeatedly
Record the remainders
Reverse the order to get the binary
Example:
13 ÷ 2 = 6 R1
6 ÷ 2 = 3 R0
3 ÷ 2 = 1 R1
1 ÷ 2 = 0 R1
Binary = 1101
Binary to Decimal
Multiply each bit by 2^position (starting from right at position 0)
Add all values together
Example:
1101 = 1×2³ + 1×2² + 0×2¹ + 1×2⁰
= 8 + 4 + 0 + 1 = 13
Decimal to Hexadecimal
Divide the decimal number by 16
Record the remainders using 0–9 and A–F
Reverse the order
Example:
254 ÷ 16 = 15 R14 → F E
Hex = FE
Hexadecimal to Decimal
Multiply each digit by 16^position (right to left)
Add the results
Example:
2A = 2×16¹ + A(10)×16⁰ = 32 + 10 = 42
Uses of Hexadecimal
MAC Address: 00:1A:2B:3C:4D:5E
IPv6 Address: 2001:0db8:85a3::8a2e:0370:7334
HTML Colors: #FF5733 = orange, #00FF00 = green
Binary Addition Rules
A B Sum Carry
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
1+1+1 — 1 (Sum) 1 (Carry)
Binary Addition Example
1101
+ 1011
--------
11000
Sum Value: Final result = 11000
Carry Values: Values passed to next bit during addition
Logical binary shift:
🧩 Activities
🔹 Activity 1: Number Conversion Relay
Divide class into small teams.
Assign each team:
o 1 decimal to binary
o 1 binary to decimal
o 1 decimal to hex
o 1 hex to decimal
🔹 Activity 2: Color Decode Challenge
Show color hex codes (e.g., #1A2B3C)
Students convert to RGB decimal:
o 1A = 26, 2B = 43, 3C = 60 → RGB(26, 43, 60)
🔹 Activity 3: Binary Addition Practice
Give binary pairs:
o 1010 + 0111
o 1100 + 0011
Students calculate and show sum and carry lines