Sequence a floating-point addition

A software model adds two normal binary floating-point values. It retains every intermediate bit until a single rounding to the destination precision, using round to nearest, ties to even.


The exact sum is nonzero, and both the exact and rounded sums are within the normal range. Order the actions in the model's addition procedure. The final action includes a check even when no correction is needed.

  1. 1.

    Align the input significands to the larger input exponent, retaining all shifted bits.

  2. 2.

    Check whether rounding produced a significand of two; if so, divide it by two and increase the exponent by one.

  3. 3.

    Add the signed aligned significands using their common exponent.

  4. 4.

    Normalize the exact nonzero sum to have one leading binary digit before the point, adjusting its exponent.

  5. 5.

    Round the normalized significand to the destination precision using round to nearest, ties to even.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Floating Point Numbers Questions: