You are on page 1of 1

1.

Determine the 2’s complement of 11001011= 00110100+1=00110101


2. Find the 2’s complements of 11000000=01000000
3. Express +19 and -19 as 8-bit numbers in sign-magnitude, 1s complement, and 2’s complement
Since 19 itself is 2^4+2^1+2^0=10011, then in 8-bit number

+19=00010011

-19=10010011

1’s complement of +19=11101100

2’s complement of +19=11101101

1’s complement of -19=01101100

2’s complement of -19=01101101

4. Determine the decimal value of the sign-magnitude 01110111:

first bit is 0, then number is positive, so

1110111=2^6+2^5+2^4+2^2+2^1+2^0=119

5. Determine the decimal value of the 1’s complement number 11101011=


2^(-7)+2^6+2^5+2^3+2^1+2^0+1=-20
6. Determine the decimal value of 2’s complement number 11010111=
2^(-7)+2^6+2^4+2^2+2^1+2^0=-41
7. Determine the binary value of the following floating-point binary number
0 10011000 10000100010100110000000:

Exponent is 10011000=2^7+2^4+2^3=128+16+8-127=25, which means 2 is in the power of 25

So, the number is (1+0. 1000010001010011000000000)*2^25=11000010001010011000000000 (which


is by the way 2^25+2^24+2^19+2^15+2^13+2^10+2^9=50898432)

You might also like