Hello Guys today we are going to see
problem number one on toys complement subtraction so far we have seen how do
you find two’s complement and two’s complement subtraction steps so here we
will apply these steps that is set number finder set number four to obtain
the correct answer of the given problem so let’s perform the subtraction using
two’s complement method so here we have to perform 12 minus 9 using the two’s
complement metal so first of all to verify the answer correct let’s perform
this subtraction in the normal decimal number 12 minus 9 will give us 3 in the
decimal now let’s perform two two’s complement subtraction to get the
correct answer as 3 so the first step is to find out the binary of pail
why do we find out the binary of 12 first step is always to find out the
binary of the first number okay so here are the first number is 12 so let us
find out the binary of the first number the binary of the first number will give
us 1 1 0 0 that is 1 2 4 8 8 plus 4 will give us 12 therefore this is the correct
answer for the binary of 12 now the second step the second step is
to find out two’s complement of 9 funny how we find out two’s complement of 9 to
find out two’s complement of 9 first of all we
have to convert this to nine decimal number into the binary so let’s convert
this night into the binary it is 1 0 0 1 this is binary of 9 not now the second step is to find out
the ones complement of night to find out the best complement of night we will
replace this each to date by its opposite value so one will be replaced
by 0 0 will be replaced by one so you know will be replaced by one and one may
be replaced by 0 so what is this this is still one’s complement of 9 fine now the
next step is to find out two’s complement to find out the two’s
complement we have to add but in the ones complement so let’s add in the ones
complement of nine so once complement of 9 is 0 1 1 0 will add 1 into this okay
so this remaining reduce will be 0 so 1 plus 0 will give us 1 but plus 0 will
give us 1 when proceed ok give us 1 & 0 plus 0 is 0 so this is the truest
complement of 9 now the step number 3 step number 3 is very important because
strong said number 3 we will be able to know whether our answer is positive or
negative here we have got our answer as positive so from the two’s complement
subtraction also we should get answer as positive 3 so there is add step number 1
and step number 3 so in step number one we have the binary of fellows 1 1 & 0 0
and in step number 2 two’s complement of 9 is 0 1 1 0 1 1 1 so let’s add the step
1 and step 2 so 0 + 1 0 plus 1 will give us 1 0 plus 1 again will give us 1 and
we are watch carefully well plus 1 is 0 and the carry will be
fine so 1 plus 1 is 0 and Kali is 1 now I’m here 1 plus 0 is 5
1 plus 0 is 1 and ya carry husband so again we will perform 1 plus 1 so 1 plus
1 will give us 0 and carry will be 1 now here no one other number is present so
therefore we have got the carry as well if you have doubt in this subtraction so
let us perform this subtraction separating it is 1 plus 0 is 1 and again
we have the carry this one so 1 plus 1 is 0 and this one is scary ok so this is
how we have on this subtraction over here now the state number food is very
important in previous steps we have seen that if the carry is present we just
have to delete the cat into its complement don’t confuse with words
compliment method and two’s complement mentioned in swoons complement method if
we have got the carry we used to do the end around carry but here if we have
find out the guy is present we can simply delete the carry
or we can simply not the cat so you don’t have to worry about the answer
that you have to make the end run carry your people simply delete this guy this
carry will be deleted and this is your final answer now to verify whether the
answer is right or wrong we will convert this final number into a decimal so when
it is your 1 let’s write down the binary package and sell out 0 but H value and
this will give us 3 in decimal now how you will be able to know whether the
answer is positive or negative see you if the carry is present that is carry
one is present then answer is always positive therefore the answer is
positive so this is how we have performed the subtraction using two’s
complement matter so in this method the very important step is step number 4 if
the carry is present you have to delete the carry so this is a very easy method
and if you have performed in each and every step correctly you will get the
final answer as a correct reason so don’t forget to perform each step but it
kills me and if you make any say then your answer will get wrong
therefore perform the binary addition very carefully and also perform the
binary conversions very carefully to get the final correct answer