The following are a series of conversions between real numbers and their floating point storage. On a separate sheet of paper and hand written, show your work and the answer for each following problem.
Part 1 - Decimal to float conversion. Convert the following to a binary storage. Use the IEEE 754 floating point ordering (sign, biased exponent, mantissa).
The number of bits for exponent and significand are provided. Show your work.
Each column in the following table states a value to convert to floating point representation and the particular size of the various parts of that floating point number.
Row 1 of the table below contains the size of the sign flag field.
Row 2 of the table below contains the size of the exponent.
Row 3 contains the size of the significand.
Row 4 contains the number being converted to floating point representation.
Sign | 1 | 1 | 1 | 1 | 1 |
Exponent | 5 | 9 | 3 | 10 | 11 |
Significand | 10 | 4 | 6 | 12 | 10 |
Number | -4095 | 0.775625 | 1/3 (.333...) | -299.87 | Your Z-Id with decimal between
the 3rd and 4th digits most significant digits. ###.#### |
Part 2 - Minimum/Maximum Floating Representation. These may be expressed as powers of 2, e.g., 2^23 - 2^17
Given a floating point number representation with a 6 bit exponent and a 7 bit significand :
a. Give the maximum positive value that can be stored. Show binary representation of the float and all work converting back to a real value.
b. Give the minimum positive normalized value that can be stored. Show binary representation of the float and all work converting back to a real value.
c. Give the minimum positive denormalized value that can be stored. Show binary representation of the float and all work converting back to a real value.
Given a floating point number representation with an 8 bit exponent and a 9 bit significand :
a. Give the maximum positive value that can be stored. Show binary representation of the float and all work converting back to a real value.
b. Give the minimum positive normalized value that can be stored. Show binary representation of the float and all work converting back to a real value.
c. Give the minimum positive denormalized value that can be stored. Show binary representation of the float and all work converting back to a real value.