2.13.6: [5] <COD §3.2>.
(a)
Assume 185 and 122 are unsigned 8-bit decimal integers. Calculate 185 - 122. Is there overflow, underflow, or neither?
111111 Neither
2.13.41: [10] <COD §3.5>.
(a)
Using the IEEE 754 floating point format, write down the bit pattern that would represent -1/4. Can you represent -1/4 exactly?
[1] [01111101] 1.[0000000000000000000000]
2.13.3: [10] <COD §3.2>.
(a)
Convert 5ED4 into a binary number. What makes base 16 (hexadecimal) an attractive numbering system for representing values in computers?
101111011011010
The format of hex numbers is more compact than binary numbers because they can represent large binary numbers with fewer digits. As a result, they are easier to understand than long binary strings of 1s and 0s.
2.13.23: [10] <COD §3.5>.
(a)
Write down the binary representation of the decimal number 63.25 assuming
the IEEE 754 single precision format.
1.1111101 x 2^5