Sheet3-Encoding and Numbering System
Sheet3-Encoding and Numbering System
Examples:
45.67 = 7 *10−2 + 6*10−1 + 4*101 + 5*100
724.5 = ---------- 75*10−1 + 4*100 + 2*101 + 7*102
Binary System
Base (radix) = 2
Symbols: 0,1
Examples:
Octal System
Base (radix) = 8
Symbols: 0,1,2,3,4,5,6,7
Examples:
(137.4 )8= 4 *8−1 + 7 *80 + 3 *81 + 1 *82 = (95.5)10
(736.4 )8 = --------------------------------------
4 *8−1 + 6 *80 + 3 *81 + 17*82
Hexadecimal System
Base (radix) = 16
Symbols: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
Examples:
(F3)16= ---------------------- (243)10
(AB. 4)16 = ------------------ (171.25)10
Converting from decimal to Binary
Example:
Fraction part:
0.12510 = (-------------)2
integer fraction
0.125× 2 0.25 0
0.25×2 0.5 0
0.5×2 0.0 1
Result = (0.001)2
Integer part:
510 = (-------------)2
reminder
5 2 1
2 2 0
1 2 1
0
Result= 1012
NB: Take care of the stopping case: reaching zero or repeated fraction
Example:
107.548 = (----------------)2
1 0 7 . 5 4
001 000 111 . 101 100
(AB.C8)16 = (----------)8
Step 1: A B . C 8
Step 2: 1010 1011 . 1100 1000
Step 3: 010 101 011 . 110 010
Step 4: 2 5 3 . 6 2
Binary Table:
Problems