5,307 views

1 Answer

0 votes
0 votes
How to calculate 1's complement for a binary number?
The 1's complement can be easily calculated by inverting the 0s & 1s of a given binary number.
How to calculate 2's complement for a binary number?
1. Find the one's complement by inverting 0s & 1s of a given binary number.
2. Add 1 to the one's complement provides the two's complement.
 

1.

                              10101110

1's complement. 01010001

2's complement  01010010

 

2.

                              10000001

1's complement  01111110

2's complement 01111111

3.                           10000000

1's complement.  01111111

2's complement . 10000000

4.                            00000001

1's complement. 11111110

2'scomplement . 11111111

5.                            00000000

1's complement . 11111111

2's complement.  00000000

 

Related questions

2 votes
2 votes
1 answer
1
ajaysoni1924 asked Mar 31, 2019
1,627 views
Show the content of the each of the registers if the two binary numbers added have decimal equivalent 257 and 514.
0 votes
0 votes
0 answers
2
ajaysoni1924 asked Mar 31, 2019
1,240 views
perform the subtraction with the following unsigned binary numbers by taking the 2’s complement of the subtrahend.11010 – 1000011010 – 1101100 – 110001010100 –...
8 votes
8 votes
1 answer
3
ajaysoni1924 asked Mar 31, 2019
3,946 views
perform the subtraction with the following unsigned decimal numbers by taking the 10’s complement of the subtrahend5250 -13211753 – 864020 -1001200 -250
0 votes
0 votes
1 answer
4
ajaysoni1924 asked Mar 31, 2019
3,627 views
Find 10’s complement of the following 6 digit decimal numbers.123900090657100000000000