Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

If the mantissa of a floating number has 24 bits what is the maximum number of s

ID: 3691401 • Letter: I

Question

If the mantissa of a floating number has 24 bits what is the maximum number of sinificant figures in the decimal (i.e. base 10) float point number that can be trushed? State any assumption you may make in your compition. A computer uses twelve bits for a floating point number, with eight bits for the mantissa and four bits for the exponent. (i) What are the binary representations of 0.123 and 12.123 on this computer? (ii) Convert these binary representations back to decimal. What are the errors? (iii) Explain the difference in the magnitude of the two errors?

Explanation / Answer

1(a). 11001001 00001111 11011010101000100.

2(b) i> 0 for .0123 and 12.123 is = 100

ii> ERROR: invalid characters in input

iii> input characters string is different