Hi there,
The principle of making a compliment number is quite simple like
binary calculation.
If you wanna make a 2's compliment of 10110, it is 01010 because when
you make a sum of 10110 and 01010 , the result becomes 100000.
However, the digits were only 5 bits so we don't care about the 1 in
the front. In addition, both number must be based on the same number
system.
I apologize about my bad explanation =P
Here is another example...
Let's do the 8's complement of 7436. 7436 is a number of base 8 so try
to make 1 0000 in this time.
7436(8) + 4(8) = 7440 (8)
7440(8) + 40(8) = 7500 (8)
7500(8) + 500(8) = 10000 (8)
so the 8's complement of 7436 is 0544(8).
Does it make sense to you?
I hope you understand this.
Cheers,
On Mar 25, 5:33 pm, vijaybaskar3...@gmail.com wrote:
hi,
I just want to know how to find complements for a number.
These are the following answers for complements
2's complement(10110)=01010
4's complement(1230)=2110
5's complement(4322)=0123
please tell me how to do it.how this answers comes.This is a global
edge question.
please also tell me how to find 8's complement(7436)
please alos tell me how to find 3's,4's,5's,6's,7's,8's complements.
regards
vijay