This preview shows page 1. Sign up to view the full content.
Unformatted text preview: rs. However, since
the wording of the assignment could be interpreted two ways, we also accepted solutions
wherein the student formulated two separate algorithms (one for subtraction and one for
division). This solution shows how to implement one algorithm that accomplishes both.
First, let’s look at the steps necessary to complete each of the operations separately:
• Set result’s exponent equal to larger exponent
• Shift mantissa of smaller number as needed so that exponents are the same
• Subtract mantissas
• Normalize resulting mantissa as...
View Full Document
- Fall '08