MGMT 1030 Lecture Notes - Lecture 25: Negative Number, Radix
![](https://new-preview-html.oneclass.com/P39wlKzyDB5qj2bZ5OMGjdnRobAW4M0g/bg1.png)
MGMT 1030 Lecture 25 Notes – Complement of a Number
Introduction
• Taking the complement of a number is almost like using the basis value as a mirror.
• In the case of base 10 radix, the largest numeral is 9
• Thus, this ethod is alled ’s opleetay epesetatio.
• The facing page shows several examples of this technique.
• If e o use the ’s opleet tehiue to assig the egatie alues to the hat
• You see that oespod to a alue of−ad to the alue −.
• This results in the relationship shown
• An important consideration in the choice of a representation is that it is consistent with
the normal rules of arithmetic.
• For the representation to be valid, it is necessary that, for any value ithi the age, −
− alue = alue.
• Simply stated, this says that if we complement the value twice, it should return to its
original value.
• Sie the opleet is just op = asis − alue the opleetig tie, asis −
asis − alue = alue hich confirms that this requirement is met.
• EXAMPLE
• Fid the ’s opleetay epesetatio fo the thee-digit ue −. −
epesets the alue fo −.
• Notice that the three-digit value range is limited to 0–499
• Since any larger number would start with a digit of 5 or greater, this is the indicator for a
negative number.
• Fid the ’s opleetay epesetatio fo the fou-digit ue −. −
9532
• Notice that in this system, it is necessary to specify the number of digits, or word size,
being used.
find more resources at oneclass.com
find more resources at oneclass.com