Hw1 Solutions
Hw1 Solutions
Conversions
1. Convert the following positive decimal numbers to binary (take the binary point of
non-exact fractions to at least 2x the decimal number of places):
126
57
111 1110
11 1001
0.125
0.001
23.57 10111.1001
0.875 0.111
11.0625 1011.0001
59
1010.01
10.25
111.111
7.875
111 0011
115
0.0011
0.1875
1111.011
15.375
0x d7f93a.f
1 0001.11
0x 11.c
0xe.79ebf
1101 0110.1110 1
0x 548cf.b3
97
1010 1111
81
0110 1000
104
1111 1100
0111 0111
119
1100 0001
63
6. Convert the following decimal numbers to signed binary numbers, using the 2s
complement sign convention:
75
0100 1011
96
1010 0000
54
1100 1010
23
121
0111 1001
1110 1001
7. Perform the indicated math operation (numbers are twos complement binary).
Write the decimal value of the answer below the binary answer.
1110 0111 (25)
+0111 1100 (124)
0110 0011
+99
EE 2310, Homework #1