Number System
Number System
Conversion table:
0 0000 0 0
1 0001 1 1
2 0010 2 2
3 0011 3 3
4 0100 4 4
5 0101 5 5
6 0110 6 6
7 0111 7 7
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
Decimal Binary Octal Hexadecimal
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F
Conversions:
Binary to Other Systems
Binary to Decimal
1. Multiply each bit by 2 raised to its position index (right to left, starting from
0).
2. Add all the results.
Example: 1101 → 1×2³ + 1×2² + 0×2¹ + 1×2⁰ = 13
Binary to Octal
1. Group bits in sets of three, starting from the right.
2. Convert each group to its decimal equivalent.
Example: 1101 → 1 101 → 15 (Octal: 15)
Binary to Hexadecimal
1. Group bits in sets of four, starting from the right.
2. Convert each group to its decimal/hexadecimal equivalent.
Example: 1101 → 1101 → D (Hexadecimal: D)