Question: Explain the steps to be followed for the addition of floating point numbers
0

Subject: Computer Organization

Topic: Introduction to Computer Organization

Difficulty: Medium

co(46) • 153 views
ADD COMMENTlink
modified 4 weeks ago by gravatar for Saba Shaikh Saba Shaikh0 written 16 months ago by gravatar for nilimazade.mtech nilimazade.mtech0
0

Steps for floating point addition of two numbers

Consider number A and B both are floating point number.

  1. Check whether A or B is zero if so the result is other operand.
  2. Calculate the difference between the exponents i.e. Ea-Eb or Eb-Ea.
  3. Select the number A or B which has a smallest exponent.
  4. Shift right the mantissa of the selected number by number of times equal to the difference between the exponents .Now both the numbers have same exponent.
  5. Perform addition of mantissa Ma+Mb.
  6. The sum is (Ma+Mb)√ór exponent(Ec).
  7. Normalize the result this is done by shifting left the mantissa bit till the MSB bit is non-zero. For each left shift the exponent of the result has to be decreased by 1.
ADD COMMENTlink
modified 4 weeks ago  • written 4 weeks ago by gravatar for Saba Shaikh Saba Shaikh0
Please log in to add an answer.