MGMT 1030 Lecture Notes - Lecture 34: Subtraction, Negative Number

15 views2 pages
MGMT 1030 Lecture 34 Notes Two’s copleet
Introduction
As i the s opleet ork, e alays hae to e osious of the uer of
specified digits.
Sie all the ork so far has assued that the uers otai three digits, lets sole
this prole fro that assuptio:  −  = 
Find the sign and magnitude of the three-digit uer ith s opleet
representation: 777
Since the number begins with a 7, it must be negative.
Therefore,  −  = 
The sign-agitude alue is −.
When the addition crosses the zero point is simply ignored.
To add to uers i s opleet, oe siply adds the digits
Any carry beyond the specified number of digits is thrown away.
Atually, i the oputer, the arry is saed i a speial arry it, just i ase it is to
be used to extend the addition to another group of bits for multiple-word additions
Subtraction is again performed by inverting the subtrahend and adding.
The rage of uers i s opleet for three digits a e see
Of particular interest is the fact that the positive and negative regions are of different
size
There is one negative number, 500, that cannot be represented in the positive region.
The s opleet of 5 is itself
This peculiarity is a consequence of the fact that the total range of numbers is even for
any even-numbered base, regardless of word size in this case, 10W
Since one value is reserved for zero, the number of remaining values to be split between
positive and negative is odd and, thus, could not possibly be equal.
Tos opleet represetatio for iary is, of ourse, siilar to s opleet
representation for decimal.
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows half of the first page of the document.
Unlock all 2 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents