2. For the following questions, use an 8-bit (IEEE 754 normalized) floating-point format with 1 sign bit, 4 exponent bits, and 3 significant bits. Note that this format is similar to the 32-bit and 64-bit formats in terms of the meaning of fields and special encodings. The leading significant 1 is assumed and the exponent field employs an excess-7 coding; which means you subtract 7 from the unsigned exponent. a. Encode the following numbers into the 8-bit floating-point format : Encode the following numbers into the 8-bit floating-point format :
2. For the following questions, use an 8-bit (IEEE 754 normalized) floating-point format with 1 sign bit, 4 exponent bits, and 3 significant bits. Note that this format is similar to the 32-bit and 64-bit formats in terms of the meaning of fields and special encodings. The leading significant 1 is assumed and the exponent field employs an excess-7 coding; which means you subtract 7 from the unsigned exponent.
a. Encode the following numbers into the 8-bit floating-point format :
Encode the following numbers into the 8-bit floating-point format :
i. 0.00110112c
ii. 16.010sm
iii. 0b0.01011011U (0b prefix = binary, U suffix = unsigned)
b. Decode the following floating-point number into its decimal value: 1 1010 101
c. Which number in the following pairs are greater in value:
i. 0 1000 100 and 0 1000 111
ii. 1 1100 100 and 1 1100 101
d. Maximum Positive Value (excluding positive infinity)
e. Minimum Positive Value (excluding zero and subnormal numbers)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images