Conversion From Decimal To Binary Octal and Hexadecimal and Vice Versa 2
Conversion From Decimal To Binary Octal and Hexadecimal and Vice Versa 2
SYSTEMS
1. DECIMAL TO Binary, Octal, and
Hexadecimal.
Strategy: Successive division.
Divide the given decimal number and the succeeding quotients by
2 for Binary
8 for Octal
16 for Hexadecimal.
Record the successive quotients and remainders, and stop only when
the quotient is 0.
The Binary, Octal, or Hexadecimal values are the remainders written from
the bottom to the top.
Example: Convert 34810 to
Binary: Octal: Hexadecimal
348 ÷ 2 = 174 = 174 R 0 348 ÷ 8 = 43.5 = 43R 4 348 ÷ 16 = 21.75 = 21 R 12
174 ÷ 2 = 87 = 87 R0 21 ÷ 16 = 1.3125 = 1 R 5
43 ÷ 8 = 5.375 = 5 R 3
87 ÷ 2 = 43.5 = 43 R 1
5 ÷ 8 = 0.625 = 0 R 5 1 ÷ 16 = 0.0625 = 0 R 1
43 ÷ 2 = 21.5 = 21 R 1
21 ÷ 2 = 10.5 = 10 R 1
10 ÷ 2 = 5 = 5 R 0 ANS: 5348 Note: 12 = C
5 ÷ 2 = 2.5 = 2 R1
2÷2=1=1 R0 ANS: 15C16
1 ÷ 2 = 0.5 = 0 R1
ANS: 1 0 1 0 1 1 1 0 02
TRY THESE:Convert the following decimal
numbers to binary, octal, and hexadecimal.
Decimal Binary Octal Hexadecimal
370
3284
16475
2. Binary, Octal, Hexadecimal to Decimal
Digits ←A B C D . E F G→