The Gateway to Computer Science Excellence
0 votes
30 views

Find 1’s and 2’s complement of the following 8 digit binary numbers

  1. 10101110
  2. 10000001
  3. 10000000
  4. 00000001
  5. 00000000
in Digital Logic by Boss (10.5k points) | 30 views

1 Answer

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

 

by Active (4.6k points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,648 questions
56,429 answers
195,206 comments
99,910 users