Discrete Mathematics AAQS007-4-1 Number Base System: Answers
Discrete Mathematics AAQS007-4-1 Number Base System: Answers
5. 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
6. A computer stores the floating number in 16 bit 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.125
(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) 111111112
(j) 1001001102(k) 11012
3. (a) 1238 (b) 1338 (c) 135.68 (d) 2538 (e) 16668
(f) 328 (g) 46708
4. (a) 6416 (b) 5116(c) 171.A16 (d) 1E116 (e) 110C16
(f) FA7216 (g) 4317016 (h) 4716
5. (a) 001001002 (b) 000011102 (c) 111100102 (d) 000011102 (e) 110111002
6. (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