written 5.5 years ago by
sabashaikh
• 0

•
modified 5.5 years ago

Steps for floating point addition of two numbers
Consider number A and B both are floating point number.
 Check whether A or B is zero if so the result is other operand.
 Calculate the difference between the exponents i.e. EaEb or EbEa.
 Select the number A or B which has a smallest exponent.
 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.
 Perform addition of mantissa Ma+Mb.
 The sum is (Ma+Mb)×r exponent(Ec).
 Normalize the result this is done by shifting left the mantissa bit till the MSB bit is nonzero. For each left shift the exponent of the result has to be decreased by 1.