MGMT 1030 Lecture Notes - Lecture 34: Subtraction, Negative Number
MGMT 1030 Lecture 34 Notes – Two’s copleet
Introduction
• As i the s opleet ork, e alays hae to e osious of the uer of
specified digits.
• Sie all the ork so far has assued that the uers otai three digits, lets sole
this prole fro that assuptio: − =
• Find the sign and magnitude of the three-digit uer ith s opleet
representation: 777
• Since the number begins with a 7, it must be negative.
• Therefore, − =
• The sign-agitude alue is −.
• When the addition crosses the zero point is simply ignored.
• To add to uers i s opleet, oe siply adds the digits
• Any carry beyond the specified number of digits is thrown away.
• Atually, i the oputer, the arry is saed i a speial 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 rage of uers i s opleet 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 opleet 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.
• Tos opleet represetatio for iary is, of ourse, siilar to s opleet
representation for decimal.
find more resources at oneclass.com
find more resources at oneclass.com