DLD Lab 01-Number System
DLD Lab 01-Number System
I - Decimal to Binary:
9710 97/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
1|Page
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
2|Page
II - Decimal to Hexadecimal:
8110 81/16 = remainder →
/16 = remainder →
3|Page
III - Binary to decimal:
101101112 =
x 27 + x 26 + x 25 + x 24 + x 23 + x 22 + x 21 + x 20
001100002 =
x 27 + x 26 + x 25 + x 24 + x 23 + x 22 + x 21 + x 20
011100002 =
x 27 + x 26 + x 25 + x 24 + x 23 + x 22 + x 21 + x 20
001100102 =
x 27 + x 26 + x 25 + x 24 + x 23 + x 22 + x 21 + x 20
011111002 =
x 27 + x 26 + x 25 + x 24 + x 23 + x 22 + x 21 + x 20
IV - Hexadecimal to decimal
D316 = x 161 + x 160 =
(1) 9715
(2) 5017
(3) 58794
(4) 69321
(5) 894683
(2) C416
(3) E1FC16
(4) 68D9AB16
(5) 32FC8A9A16
(1) 0010100111100000
(2) 1001011000110101
(3) 10010111100000111001100
(4) 110101000100100110000011
(5) 0110101001101010010100100101100101010100
VIII -Fill in the parity bits for the binary words below:
1111101010110100
1111101101111011
0001001011000110
0101011010110111
0101100110110111
-12
12
-30
-25
35
-40
X -Binary to Decimal- Assume 6-Bits
111000
11000
111111
11111
110