0% found this document useful (0 votes)
43 views24 pages

Conversion From Decimal To Binary Octal and Hexadecimal and Vice Versa 2

The document describes how to convert numbers between decimal, binary, octal, and hexadecimal number systems. It provides the strategies and steps to convert numbers in either direction between the number systems using successive division or multiplying place values. Examples are given to demonstrate converting specific numbers between the different bases.

Uploaded by

Chris Smith
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views24 pages

Conversion From Decimal To Binary Octal and Hexadecimal and Vice Versa 2

The document describes how to convert numbers between decimal, binary, octal, and hexadecimal number systems. It provides the strategies and steps to convert numbers in either direction between the number systems using successive division or multiplying place values. Examples are given to demonstrate converting specific numbers between the different bases.

Uploaded by

Chris Smith
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 24

CONVERSIONS OF NUMBER

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→

Binary (base 2) ← 23 22 21 20 . 2-1 2-2 2-3 →


Octal (base 8) ← 83 82 81 80 . 8-1 8-2 8-3 →
Hexa(base 16) ← 163 162 161 160 . 16-1 16-2 16-3 →
decimal
*Multiply the digit/s and its corresponding baseexponent and then add.
Example: Convert the following binary to decimal
1.) 1 0 1 1 0 1 2.) 1 0 1 . 1 0 1
25 24 23 22 21 20 22 21 20 2-1 2-2 2-3
*do not include 0 *do not include 0
1 x 25 = 32 1 x 22 = 4
1 x 23 = 8 1 x 20 = 1
1 x 22 = 4 1 x 2-1 = 0.5
1 x 20 = 1 1 x 2-3 = 0.125
SUM: 4510 ← Answer SUM: 5.62510 ← Answer
Example: Convert the following octal to decimal
2.) 425.27
1.) 1075 4 2 5 . 2 7
82 81 80 8-1 8-2
1 0 7 5 *do not include 0
83 82 81 80
4 x 82 = 256
*do not include 0
2 x 81 = 16
1 x 83 = 512
7 x 81 = 56 5 x 80 = 5
5 x 80 = 5 2 x 8-1 =0.25
SUM: 57310 ← Answer 7 x 8-2 =0.109375
SUM: 277.35937510 ← Answer
Example: Convert the following hexadecimal to
decimal
2.) 3B4.C8 Note: B=11, C=12)
1.) 23E (Note: E=14) 3 11 4 . 12 8
2 3 E(14) 162 161 160 16-1 16-2
162 161 160 *do not include 0
*do not include 0 3 x 162= 768
2 x 162= 512 11 x 161 = 176
3 x 161 = 48 4 x 160 = 4
14 x 160 = 14 12 x 16-1 = 0.75
SUM: 57410 ← Answer 8 x 16-2 = 0.03125
TRY THESE: Convert the following to
Decimal
Binary / Octal / Hexadecimal Decimal
1 1 0 1 12
1 0 0 1 1 . 0 1 12
7658
635.758
AB0916
E41.2D16
ANSWERS
Answers to:Convert the following decimal
numbers to binary, octal, and hexadecimal.
Decimal Binary Octal Hexadecimal

370 101110010 562 172

3284 110011010100 6324 CD4

16475 100000001011011 40133 405B


Answers to: Convert the following to
Decimal
Binary / Octal / Hexadecimal Decimal
1 1 0 1 12 27
1 0 0 1 1 . 0 1 12 19.3755
7658 501
635.758 413.953125
AB0916 43,785
E41.2D16 3649.17578125
Binary to Octal / Hexadecimal
To Octal:
• Group the binary numbers into groups of 3 (start from the right)
• Write: 4 2 1 to each groups of 3
• Add the numbers under the binary digit 1.
• Combine the numbers
To Hexadecimal:
• Group the binary numbers into groups of 4 (start from the right)
• Write: 8 4 2 1 to each groups of 4
• Add the numbers under the binary digit 1
• Convert the numbers 10, 11, 12, 13, 14, or 15 to its corresponding
letter
• Combine the numbers and letters.
Examples: Convert the following binary numbers to
octal numbers
1. 1 1 0 1 0 1 2. 1 1 1 1 1 1 0
1 1 0 1 0 1 0 0 1 1 1 1 1 1 0
4 2 1 4 2 1 4 2 1 4 2 1 4 2 1
=4 +2 =4+1 =1 =4+2+1 =4+2
=6 =5 =7 =6

Answer: 658 Answer: 1768


Examples: Convert the following binary numbers to
Hexadecimal numbers
1. 10110111 2. 1011101010
1 0 1 1 0 1 1 1 0 0 1 0 1 1 1 0 1 0 1 0
8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1
=8 +2+1 =4+2+1 =2 =8+4+2 =8+2
=11 =7 =14 =10
=B =E =A
Answer: B716 Answer: 2EA16
TRY THESE: Convert the following binary
numbers to Octal and Hexadecimal numbers.

Binary Octal Hexadecimal


11011010
1111011111100
ANSWERS
ANSWERS TO: Convert the following
binary numbers to Octal and Hexadecimal
numbers.
Binary Octal Hexadecimal
11011010 3328 DA16
1111011111100 173748 1EFC16
Hexadecimal to Binary / Octal
To Binary
• Separate each digit/letter and convert the letter/s to its corresponding numerical
value
• Write: 8 4 2 1 under each digit
• Encircle the numbers in 8 4 2 1 that adds up to the digit above them
• Write 1 under each encircled number, and 0 otherwise.
To Octal
• Do the steps for binary (above)
• Group the binary numbers into groups of 3 (start from the right)
• Write: 4 2 1 to each groups of 3
• For each group add the numbers in 4 2 1 that are under the binary digit 1.
• Combine the numbers and letters
Examples: Convert the following Hexadecimal number
to binary numbers 2.) 3B7 (Note: B=11)
3 11 7
1.) A9 (Note: A=10)
8 4 2 1 8 4 2 1 8 4 2 1
10 9
0 0 1 1 1 0 1 1 0 1 1 1
8 4 2 1 8 4 2 1
1 0 1 0 1 0 0 1
Answer:
1110110111
Answer:
10101001
Examples: Convert the following Hexadecimal
numbers to octal numbers
2.) 1EF (Note: E=14, F=15)
1.) AC (Note: A=10, C=12)
1 14 15
10 12
8 4 2 1 8 4 2 1 8 4 2 1
8 4 2 1 8 4 2 1
0 0 0 1 1 1 1 0 1 1 1 1
1 0 1 0 1 1 0 0
Groups of 3:
Groups of 3:
111 101 111
010 101 100
421 421 421
421 421 421
=4+2+1 =4+1 =4+2+1
=2 =4+1 =4
=7 =5 =7
=5
Answer: 757
Answer: 254
TRY THESE: Convert the following
Hexadecimal numbers to binary/octal numbers

Hexadecimal Binary Octal


1D29
1F2C
ANSWERS
TRY THESE: Convert the following
Hexadecimal numbers to binary/octal numbers

Hexadecimal Binary Octal


1D29 1110100101001 16451
1F2C 1111100101100 17,454

You might also like