Question: In certain situations, you can be sure that a + b is exactly representable as a floating-point number, that is, no rounding is necessary. a.

In certain situations, you can be sure that a + b is exactly representable as a floating-point number, that is, no rounding is necessary.

a. Give an example where the exponents differ by 1, a and b have different signs, and a + b is not exact.

b. If a b 0, and the top two bits of a cancel when computing a b, explain why the result is exact.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!