What will be the 2’s complement of the given numbers which are in signedbinary representation? 00010010 01001010
Question
What will be the 2’s complement of the given numbers which are in signed binary representation?
00010010
01001010
Solution
To find the 2's complement of a binary number, follow these steps:
-
Find the 1's complement of the binary number. This is done by flipping all the bits in the binary number. A '1' becomes a '0' and a '0' becomes a '1'.
-
Add 1 to the 1's complement.
Let's apply these steps to the given binary numbers:
- 00010010
- 01001010
Step 1: Find the 1's complement
- 00010010 -> 11101101
- 01001010 -> 10110101
Step 2: Add 1 to the 1's complement
- 11101101 + 1 -> 11101110
- 10110101 + 1 -> 10110110
So, the 2's complement of 00010010 is 11101110 and the 2's complement of 01001010 is 10110110.
Similar Questions
Which of the following represents the two's complement of the binary number 1101?
Convert the following decimal values to a 16-bit 2's complement representation. (1*2Marks)i. -2342ii. 234
Convert the following decimal values to 8-bit 2's complement representation(1*2 Marks)i. -92ii. -36
Signed 2’s complement representation is preferred over signed 1’s complementrepresentation? Why?
X is a 16-bit signed number. If the n’s complement representation of X is(F76A)16. The n’s complement representation of ( 8 * X) is
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.