MGMT 1030 Lecture 33: MGMT 1030 Lecture 33 Notes
MGMT 1030 Lecture 33 Notes – Single Zero
Introduction
• Complements are found by subtracting the value from the modulus, in this case, 1000.
• This ethod assues a sigle zeo, sie − od is zeo.
• Again, as with the previously discussed complementary methods, notice that the
complement of the complement results in the original value.
• See the examples on the facing page.
• Thee is a alteatie ethod fo opleetig a ’s opleet ue.
• First, observe that 1000 = 999 + 1
• You eall that the 9’s opleet as foud y sutatig eah digit fo 9: 9s op
= 999 − alue
• Fo the peious euatio, the ’s opleet a e eitte as s op =
− alue = 999 + − alue = 999 − alue + 1 or, finally, 10s comp = 9scomp + 1
• This gies a siple alteatie ethod fo oputig the ’s opleet alue
• Fid the 9’s opleet, hih is easy, ad add to the esult.
• Either method gives the same result. You can use whichever method you find more
convenient.
• This alternative method is usually easier computationally, especially when working with
binary numbers, as you will see.
• Additio i ’s opleet is patiulaly siple.
• Sie thee is oly a sigle zeo i ’s opleet, sums that cross the modulus are
unaffected.
• Thus, the carry that results
• EXAMPLE
• Fid the ’s opleet of 7.
• As a eide, ote that the uestio asks fo the ’s opleet of 7, ot the ’s
complement representation.
find more resources at oneclass.com
find more resources at oneclass.com