In: Computer Science
Concern the following 16-bit floating point representation: The first bit is the sign of the number (0 = +, 1 = -), the next nine bits are the mantissa, the next bit is the sign of the exponent, and the last five bits are the magnitude of the exponent. All numbers are normalized, i.e. the first bit of the mantissa is one, except for zero which is all zeros.
1. What's the smallest difference between two consecutive or adjacent numbers?
2. What's the largest difference between two consecutive or adjacent numbers?(Give both numbers in both binary and decimal representations)
3. Translate .1 decimal into our 16-bit binary floating point representation and translate the result back into decimal. What happened? Why?
4. Give a simple rule for determining when a fraction (i.e. a ratio of two integers) can be represented exactly by a terminating decimal expression(i.e. non-repeating)
5. Give a simple rule for determining when a fraction can be represented exactly by a terminating binary expression (i.e. non-repeating)
6. Do all terminating binary fractions terminate in decimal? Do all terminating decimal fractions terminate in binary