CH10 COA11e
CH10 COA11e
CH10 COA11e
Chapter 10
Number Systems
4 7 2 2 5 6
Position 4 3 2 1 0 –1
Suppose it is required to convert a decimal integer N into binary form. If we divide N by 2, in the decimal
system, and obtain a quotient N1 and a remainder R0, we may write
N = 2 * N1 + R0 R0 = 0 or 1
Next, we divide the quotient N1 by 2. Assume that the new quotient is N2 and the new remainder R1. Then
N1 = 2 * N2 + R1 R1 = 0 or 1
so that
If next
N2 = 2N3 + R2
we have
• Because 16 symbols are used, the notation is called hexadecimal and the 16
symbols are the hexadecimal digits
• Thus
2C16 = (216 * 161) + (C16 * 160)
= (210 * 161) + (1210 * 160) = 44
Decimal, Binary, 1
2
0001
0010
1
2
and Hexadecimal 3
4
0011
0100
3
4
5 0101 5
6 0110 6
7 0111 7
8 1000 8
9 1001 9
10 1010 A
11 1011 B
12 1100 C
13 1101 D
14 1110 E
15 1111 F
16 0001 0000 10
17 0001 0001 11
18 0001 0010 12
31 0001 1111 1F
100 0110 0100 64
255 1111 1111 FF
256 0001 0000 0000 100