You are on page 1of 11

Department of

University of
Control and Systems
Technology - Iraq
Engineering

Outlines
• Binary to Hexadecimal Conversion
• Hexadecimal to Binary Conversion :Decimal to
• Hexadecimal to Decimal Conversion
• Decimal to Hexadecimal Conversion

3/30/2023 2
Department of
University of
Control and Systems
Technology - Iraq
Engineering

Hexadecimal Numbers

3/30/2023 3
Department of
University of
Control and Systems
Technology - Iraq
Engineering

Binary to hexadecimal Conversion


• Example1: (110010100111)2 = (?)16

• Solution: convert to binary each 4 digits


• 1100 1010 0111
C A 7
• (110010100111)2 = (CA7)16

3/30/2023 4
Department of
University of
Control and Systems
Technology - Iraq
Engineering

Binary to hexadecimal Conversion


• Example2: (1111 0011 1100)2 = (?)16

• Solution: convert to binary each 4 digits


• 1111 0011 1100
F 3 C
• (1111 0011 1100)2 = (F3C)16

3/30/2023 5
Department of
University of
Control and Systems
Technology - Iraq
Engineering

Hexadecimal to Binary Conversion :


• Example3: (10A4)16= (?)2

• Solution: convert to 4 digits binary each digits


• 1 0 A 4
0001 0000 1010 0100
• (10A4)16 =(0001000010100100)2

3/30/2023 6
Department of
University of
Control and Systems
Technology - Iraq
Engineering

Hexadecimal to Binary Conversion :


• Example4: (CF8E)16= (?)2

• Solution: convert to 4 digits binary each digits


• C F 8 E
1100 1111 1000 1110
• (CF8E)16 =(1100 1111 1000 1110)2

3/30/2023 7
Department of
University of
Control and Systems
Technology - Iraq
Engineering

Hexadecimal to Binary Conversion :


• Example5: (9742)16= (?)2

• Solution: convert to 4 digits binary each digits


• 9 7 4 2
1001 0111 0100 0010
• (9742)16 =(1001 0111 0100 0010)2

3/30/2023 8
Department of
University of
Control and Systems
Technology - Iraq
Engineering

Hexadecimal to Decimal Conversion


• Example6: (1C)16= (?)10

• Solution: Hexa→Binary→Decimal

• 1C → 0001 1100 →
• 27x0+26x0+25x0+24x1+23x1+22x1+21x0+20x0
• 16+8+4
• (1C)16=(28)10

3/30/2023 9
Department of
University of
Control and Systems
Technology - Iraq
Engineering

Hexadecimal to Decimal Conversion


• Example7: (A85)16= (?)10

• Solution: Hexa→Binary→Decimal

• A85 → 1010 1000 0101 →


• 211 + 29+27+22+20

• (A85)16=(2693)10
3/30/2023 10
Department of
University of
Control and Systems
Technology - Iraq
Engineering

Decimal to Hexadecimal Conversion


• Example8: (650)10= (?)16

• Solution:

• 650/16=40.625→ 0.625 × 16 = 10=A


• 40/16=2.5 → 0. 5 × 16 = 8 = 8
• 2/16=0.125 → 0.125 × 16 = 2 = 2
• (650)10=(28A)16

3/30/2023 11

You might also like