The following floating-point number format is given: \(f\) is a fraction…

PYQ GATE 1997

The following floating-point number format is given:

ff is a fraction represented by a 6-bit mantissa (including the sign bit) in sign-magnitude form. ee is a 4-bit exponent (including the sign bit) in sign-magnitude form. The floating-point number is n=(f,e)=f⋅2en=(f,e)=f\cdot 2^e.

Let A=54.75A=54.75 and B=9.75B=9.75 in decimal.

(a) Represent AA and BB as floating-point numbers in the above format.

(b) Show the steps involved in floating-point addition of AA and BB.

(c) What is the percentage error (to one decimal place) in the addition operation in (b)?

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…