Computer Arthmetric
Computer Arthmetric
1. Represent the following decimal numbers in binary using 8-bit signed magnitude, one’s
complement, two’s complement, and Excess-127 representations:
(a) 72
(b) −72
2. Describe what conditions indicate overflow has occurred when two 2’s complement
numbers are added.
4. Consider the 16-bit floating point representation where the first bit represents the sign, the
next 5 bits represent the biased exponent, and the last 10 bits represent the normalized
significand.
(a) Given the number A = 0100011000000000, what is the decimal value represented by
the bit sequence?
3
(b) Convert A = 7 4 to a floating point in the above representation.
5. Given the pair of numbers, N1 and N2, represented in the IEEE 754 single precision
floating point format as shown in the table,
Compute:
(a) N1 + N2
(b) N1 ∗ N2