go to previous page   go to home page   go to next page hear noise

Answer:

No. Remember from the last chapter that 0.1 can't be represented precisely in binary. Using floating point representation does not change anything. It does not matter that the number is negative.


-0.1

But let us proceed to see how -0.1 is (imprecisely) represented.

 


QUESTION 20:

Here are the bits written out:

+-exponentMantissa
1 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0

Write out the bit pattern as hexadecimal.