Number System: © Ramaiah University of Applied Sciences Faculty of Engineering & Technology

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 20

Lecture 6

Number System

1
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Objectives

At the end of this lecture, student will be able to:


 Convert Octal to Binary
 Acquire the knowledge of Hexadecimal to Binary conversion
 Explain the conversion of Decimal to Octal
 Convert Decimal to Hexadecimal conversion
 Acquire the knowledge of Binary to Octal conversion
 Explain the conversion of Binary to Hexadecimal
 Acquire the knowledge of Octal to Hexadecimal conversion
 Convert Hexadecimal to Octal conversion

2
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Topics
 Octal to Binary conversion
 Hexadecimal to Binary conversion
 Decimal to Octal conversion
 Decimal to Hexadecimal conversion
 Binary to Octal conversion
 Binary to Hexadecimal conversion
 Octal to Hexadecimal conversion
 Hexadecimal to Octal conversion

3
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Octal to Binary

Decimal Octal

Binary Hexadecimal

4
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Octal to Binary
Technique

• Convert each octal digit to a 3-bit equivalent binary representation

Example

7058 = ?2

7 0 5

111 000 101

7058 = 1110001012

5
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Hexadecimal to Binary

Decimal Octal

Binary Hexadecimal

6
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Hexadecimal to Binary
Technique
Convert each hexadecimal digit to a 4-bit equivalent binary representation
Example
10AF16 = ?2
1 0 A F

0001 0000 1010 1111

10AF16 = 00010000101011112

7
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Decimal to Octal

Decimal Octal

Binary Hexadecimal

8
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Decimal to Octal
Technique
• Divide by 8
• Keep track of the remainder

Example
123410 = ?8

8 1234
8 154 2
8 19 2
8 2 3
0 2

123410 = 23228 9
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Decimal to Hexadecimal

Decimal Octal

Binary Hexadecimal

10
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Decimal to Hexadecimal
Technique
• Divide by 16
• Keep track of the remainder
Example
123410 = ?16

16 1234
16 77 2
16 4 13 = D
0 4

123410 = 4D216 11
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Binary to Octal

Decimal Octal

Binary Hexadecimal

12
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Binary to Octal
Technique
• Group bits in threes, starting on right
• Convert to octal digits
Example
10110101112 = ?8

1 011 010 111

1 3 2 7

10110101112 = 13278

13
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Binary to Hexadecimal

Decimal Octal

Binary Hexadecimal

14
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Binary to Hexadecimal
Technique
• Group bits in fours, starting on right
• Convert to hexadecimal digits
Example
10101110112 = ?16

10 1011 1011

2 B B

10101110112 = 2BB16

15
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Octal to Hexadecimal

Decimal Octal

Binary Hexadecimal

16
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Octal to Hexadecimal
Technique
• Use binary as an intermediary
Example
10768 = ?16
1 0 7 6

001 000 111 110

2 3 E

10768 = 23E16
17
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Hexadecimal to Octal

Decimal Octal

Binary Hexadecimal

18
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Hexadecimal to Octal
Technique
Use binary as an intermediary
Example
1F0C16 = ?8
1 F 0 C

0001 1111 0000 1100

1 7 4 1 4

1F0C16 = 174148

19
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences
Summary
Octal to Binary
• Convert each octal digit to a 3-bit equivalent binary representation
Hexadecimal to Binary
• Convert each hexadecimal digit to a 4-bit equivalent binary representation
Decimal to Octal
• Divide by 8
• Keep track of the remainder
Decimal to Hexadecimal
• Divide by 16
• Keep track of the remainder

20
Faculty of Engineering & Technology © Ramaiah University of Applied Sciences

You might also like