b) IfX=111.101 and Y=101.110. Calculate x + y, and x-y
7
and y-x by 2's complement method.
Answers
Answer:
Difference =-(2 's complement of 110.001) = -1.111
Step-by-step explanation:
Step : 1 Given:
Now
X+Y = 111.101
101.110
1101.001
For
's complement of Y
=111.101+010.010
For
There is no carry generated its a negative number.
Difference =-(2 's complement of 110.001) = -1.111
Step : 2 The method of complements is a technique used in mathematics and computing to encrypt a symmetric range of positive and negative integers such that addition may be performed over the whole range using the same algorithm and hardware. Step 1: Express the provided number's absolute value in binary form. To signify that this number is positive, prefix it with 0. Step 2: Complement each bit by flipping the corresponding ones and zeros. Step 3: Increase your outcome by 1.
To learn more about similar questions visit:
https://brainly.in/question/54119514?referrer=searchResults
https://brainly.in/question/4641103?referrer=searchResults
#SPJ1