CIS 360
Numbers


5 bit equivalences 4-bit representations

Number Binary Octal Hex
0 00000 0 0
1 00001 1 1
2 00010 2 2
3 00011 3 3
4 00100 4 4
5 00101 5 5
6 00110 6 6
7 00111 7 7
8 01000 10 8
9 01001 11 9
10 01010 12 A
11 01011 13 B
12 01100 14 C
13 01101 15 D
14 01110 16 E
15 01111 17 F
16 10000 20 10
17 10001 21 11
...
Decimal Simple Binary
15 1111
14 1110
13 1101
12 1011
11 1010
10 1010
9 1001
8 1000
7 0111
6 0110
5 0101
4 0100
3 0011
2 0010
1 0001
0 0000
Decimal Sign-Magnitude
7 0111
6 0110
5 0101
4 0100
3 0011
2 0010
1 0001
0 0000
-0 1000
-1 1001
-2 1010
-3 1011
-4 1100
-5 1101
-6 1110
-7 1111
Decimal 1's Complement
7 0111
6 0110
5 0101
4 0100
3 0011
2 0010
1 0001
0 0000
-0 1111
-1 1110
-2 1101
-3 1100
-4 1011
-5 1010
-6 1001
-7 1000
Decimal 2's Complement
7 0111
6 0110
5 0101
4 0100
3 0011
2 0010
1 0001
0 0000
-1 1111
-2 1110
-3 1101
-4 1100
-5 1011
-6 1010
-7 1001
-8 1000


Last updated 12/28/99
360 syllabus