Homework 2 Solution

However since the wording of the assignment could be

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

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: Subtraction: • 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

This document was uploaded on 02/26/2014 for the course ECE 490SIC at Drexel.

Ask a homework question - tutors are online