T1 - Number Base System
T1 - Number Base System
5. Convert the following decimal numbers to binary, then find its 8-bit representation
for sign and magnitude, 1’s and 2’s complement.
(a) –27 (b) –53 (c) –115
7. Using two’s complement in 8-bit register, show how the computer would evaluate the
following:
(a) 25 + 11 (b) 25 – 11 (c) 11 – 25 (d) –11 + 25
(e) –11 – 25
8. A computer stores the floating number in 16 bits where 1 bit for the sign, 6 bits for the
exponent with a biased of +31 and mantissa has a hidden bit.
(a) Show how those floating-point values would be represented in that computer.
(i) 12.75
(ii) –6.5
(iii) 0.75
(b) What is the decimal value of the floating point representation given in each of the
following?
(i) 1100 1001 0000 1110
(ii) 0011 1011 0100 0000
Answers:
1. (a) 45 (b) 375 (c) 2737 (d) 10.625 (e) 370.1875
(f) 289.625 (g) 54 (h) 13.2
2. (a) 10101112 (b) 10011012 (c) 100110012 (d) 11011010.00112 (e) 1100.12
(f) 11010.1101112 (g) 1000011.0012 (h) 1101011.012 (i) 111000.12
(j) 1001001102 (k) 11012
3. (a) 123.248 (b) 1338 (c) 135.68 (d) 253.348 (e) 16668
(f) 1045.58 (g) 244.548
4. (a) 43C.B16 (b) 5116 (c) 171.A16 (d) 3C.216 (e) 110.C16
(f) FA7216 (g) B2016 (h) 4716
5. (a) Binary = –11011, sign & magnitude = 10011011, 1’s complement = 11100100,
2’s complement = 11100101
(b) Binary = –110101, sign & magnitude = 10110101, 1’s complement = 11001010,
2’s complement = 11001011
(c) Binary = –1110011, sign & magnitude = 11110011, 1’s complement = 10001100,
2’s complement = 10001101
6. (a)(i) 52 (ii) 52 (iii) 52
(b)(i) –61 (ii) –66 (iii) –67
(c)(i) –39 (ii) –88 (iii) –89
(d)(i) –74 (ii) –53 (iii) –54
7. (a) 001001002 (b) 000011102 (c) 111100102 (d) 000011102 (e) 110111002
8. (a)(i) 0 100010 100110000 (ii) 1 100001 101000000 (iii) 0 011110 100000000
(b)(i) -48.875 (ii) 0.40625
Additional Questions:
3. Using two’s complement in 8-bit register, show how the computer would evaluate the
following.
22 – 14
4. What is the value represented in single-precision format below if the bias is 127?
1 1000 0011 110 0010 0000 0000 0000 0000