Binary unsigned representations
1) Convert the following decimal numbers to a binary unsigned representation:
18
44
83
128
135
2) Convert the following unsigned binary numbers to decimal
1101
10011
11111
101011
110010
3) Convert the following decimal numbers to two’s complement 6 bits (be careful, a couple of these are trick problems – consider the range of values for 6 bits):
23
-5
41
-22
-38
-32
-1
17
4) Convert the two’s complement 8 bit binary to decimal:
00000001
00011100
10010011
00110011
11111111
10000000 5) Assuming two’s complement 8 bit binary, perform the following arithmetic (check that your results make sense):
00100100 + 01010011
00110101 + 00110011
00110101 + 11111011
00110101 + 01111011
00110101 - 00010101
00110101 - 00011011
00110101 - 01111111
10110101 - 01111111
00001101 X 00000011
00001101 X 00000101
6) If 110101 is two’s compliment in six bits, what is the same value in two’s compliment eight bits?
Challenge 1) Convert the following binary to decimal (think about what the decimal point means in base 2 terms):
11.01
101.011
Challenge 2) Convert the following decimal to a binary representation:
21.5