Complement analysis Flashcards
1
Q
Types of complement
A
r’s and (r-1)’s complement
2
Q
r’s complement of N
A
r^n - N
n-no. of integer digits
N-given no.
3
Q
(r-1)’s complement of N
A
r^n - N - r^-m
n-no. of integer digits
N-given no.
m-no. of decimal digits
4
Q
When m=0 , only for nos. with integer digits
A
r’s complement - 1 = (r-1)’s complement
5
Q
If we are finding 9’s complement for a no.
A
we subtract the no. using 999.999 for 9’s complement and then for 10’s complement , we add 1
6
Q
1’s complement
A
Flip all bits
7
Q
2’s complement
A
Find all 1’s complement and then add 1
8
Q
F + 1=16
A
16-16=0 carry goes to prev with 1
9
Q
A