Beruflich Dokumente
Kultur Dokumente
2 SYSTEM
2.2.1 BINARY
2.2
2.2.2 HEXADECIMAL
NUMBER
SYSTEM
&
REPRESENTATION
Learning Outcomes :
Binary digit
110
Binary number
Decimal Numbers
2.2
2.2.2 HEXADECIMAL
NUMBER
SYSTEM
&
REPRESENTATION
Learning Outcomes :
Uses 16 symbols: 0, 1, 2, 3, 4, 5, 6, 7,
8, 9, A, B, C, D, E and F.
2.2
NUMBER 2.2.2 HEXADECIMAL
SYSTEM
2.2.3 CONVERSION BETWEEN BINARY
& AND HEXADECIMAL
REPRESENTATION
Learning Outcomes :
24 23 22 21 20
1 0 1 1 0
16 x 1 8x0 4x1 2x1 1x0
16 + 0+ 4+ 2+ 0= 22
Hence, 101102 = 22
Binary to decimal conversion
Example 2
26 25 24 23 22 21 20
1 0 1 1 1 0 0
64 x 1 32 x 0 16 x 1 8 x 1 4 x 1 2 x 0 1 x 0
64 + 0+ 16 + 8+ 4+ 0+ 0= 92
Hence, 10111002 = 92
Binary to decimal conversion
Example 3
Example 1:
Convert the number 22 to the binary
number system
Solution:
Desired base is 2, so we repeatedly divide
the given decimal number by 2.
2 22
2 11 ---- 0
2 5 ---- 1
2 2 ---- 1
Binary
2 1 ---- 0 number
0 ---- 1
Hence, 22 = 101102
Decimal to binary conversion
Example 2:
Solution:
Desired base is 2, so we repeatedly divide
the given decimal number by 2.
2 40
2 20 ---- 0
2 10 ---- 0
2 5 ---- 0 Binary
number
2 2 ---- 1
2 1 ---- 0
0 ---- 1 Hence, 40 = 1010002
Solution:
Divide the given decimal number by 2.
2 18
2 9 ---- 0
2 4 ---- 1
2 2 ---- 0
Binary
2 1 ---- 0 number
0 ---- 1
Hence, 18 = 100102
Decimal to binary conversion
Decimal to hexadecimal conversion
Example 1:
Solution:
Desired base is 16, so we repeatedly divide the
given decimal number by 16.
16 1341
16 83 ---- 13 (D)
16 5 ---- 3
Hex Number
0 ---- 5
Hence,1341 = 53D16
Solution:
Desired base is 16, so we repeatedly divide the
given decimal number by 16.
16 860
16 53 ---- 12 (C)
16 3 ---- 5
Hex Number
0 ---- 3
Solution:
Desired base is 16, so we repeatedly divide the
given decimal number by 16.
16 2020
16 126 ---- 4
0 ---- 7
Solution:
24 23 22 21 20
1 1 0 1 0
16 x 1 8x1 4x0 2x1 1x0
16 + 8+ 0+ 2+ 0= 26
Step 2: Convert decimal to hex:
Solution:
16 26
16 1 ---- 10 (A)
Hex number
0 ---- 1
Solution:
24 23 22 21 20
1 0 0 1 0
16 x 1 8x0 4x0 2x1 1x0
16 + 0+ 0+ 2+ 0= 18
Solution:
16 18
16 1 ---- 2
Hex number
0 ---- 1
Solution:
23 22 21 20
1 1 1 1
8x1 4x1 2x1 1x1
8+ 4+ 2+ 1= 15
Step 2: Convert decimal to hex:
Solution:
16 15
0 ---- 15 (F) Hex number
Solution:
2 1021
2 510 ---- 1
2 255 ---- 0
2 127 ---- 1
2 63 ---- 1
2 31 ---- 1 Binary number
2 15 ---- 1
2 7 ---- 1
2 3 ---- 1
2 1 ---- 1 Hence, 3FD16 = 11111111012
0 ---- 1
hex to binary conversion
Example 2
Solution:
Solution:
2 418
2 209 --- 0
2 104 --- 1
2 52 --- 0
2 26 --- 0 Binary number
2 13 --- 0
2 6 --- 1
2 3 --- 0
2 1 --- 1 Hence, 1A216 = 1101000102
0 --- 1
hex to binary conversion
Example 3
Solution:
2 2801
2 1400 ---- 1
2 700 ---- 0
2 350 ---- 0
2 175 ---- 0
2 87 ---- 1
2 43 ---- 1
2 21 ---- 1 Binary number
2 10 ---- 1
2 5 ---- 0
2 2 ---- 1 Hence, AF116 = 1010111100012
2 1 ---- 0
0 ---- 1
hex to binary conversion
Summary
Number system
Binary numbers
Decimal numbers
Hexadecimal numbers
Convert Binary to Decimal
Convert Decimal to Binary
Convert Decimal to Hexadecimal
Convert Hexadecimal to Decimal
Convert Binary to Hexadecimal
Convert Hexadecimal to Binary