Register to reply 
9's complementby snoggerT
Tags: complement 
Share this thread: 
#1
Feb1509, 05:40 PM

P: 186

Find the 4digit complement of a) 0232 b) 9644
3. The attempt at a solution I'm not really sure what is being asked here. When asked what form the numbers were given in and whether the problem was talking about 9's complement, his response was "the answer is 9's complement". So I don't really know what to do since they appear to be in 9's complement form already. Does anyone think they can help? 


#2
Feb1509, 08:16 PM

P: 366

One of the uses of 9's complement notation is to convert a decimal into its negative form so that an addition can be performed instead of subtraction, thus obviating the necessity of borrowing, etc.
The nine's complement can be obtained by subtracting from nine of each and every digit of the original number. For example, the nine's complement of 1357 would be 8642, since 91=8, 93=6, 95=4, 97=2. To do a subtraction, we simply add the first number to the nine's complement of the second number, PLUS 1, then ignore the 'Carry'. For example, to do 524256 we calculate 524+743+1=1268, drop the 1 (carry) to give 268. See for example: http://en.wikipedia.org/wiki/Ten's_complement 


#3
Feb1509, 08:24 PM

P: 186

thanks. I just wanted to make sure on that.



Register to reply 
Related Discussions  
Complement of XOR, what is it?  Electrical Engineering  13  
2's complement  Electrical Engineering  2  
2's complement  Engineering, Comp Sci, & Technology Homework  2  
Sign magnitude/1's Complement/2's Complement HELP!  Engineering, Comp Sci, & Technology Homework  0  
2's complement in VB  Programming & Computer Science  2 