Computer Science - Computer Fundamentals - Discussion
Discussion Forum : Computer Fundamentals - Section 1 (Q.No. 31)
31.
The 2's complement of a binary no. is obtained by adding.....to its 1's complement.
Discussion:
17 comments Page 1 of 2.
Ravn said:
1 year ago
Here, they haven't given any f-number how could we find the f answer? please explain to me.
Sayan said:
8 years ago
Why do we need 1's complement and 2's complement? I mean, what are they actually useful for?
Ashok Arya said:
9 years ago
10101000111 This 1's and 0's binary language which can understand by computer.
It's hard to do operations on this binary numbers. To simplify this we use 1's and 2's compliment. Like if we have to subtract to binary number just find the 1's complement of number and add them together instead of subtracting.(adding binary number is simpler than subtracting).
1's compliment of 111000110010 is = 000111001101("0 converted to 1" and "1 converted to 0");
2's compliment of 111000110010 is = 000111001101 + 1 = 000111001110...
It's hard to do operations on this binary numbers. To simplify this we use 1's and 2's compliment. Like if we have to subtract to binary number just find the 1's complement of number and add them together instead of subtracting.(adding binary number is simpler than subtracting).
1's compliment of 111000110010 is = 000111001101("0 converted to 1" and "1 converted to 0");
2's compliment of 111000110010 is = 000111001101 + 1 = 000111001110...
(1)
GRADY ONESMO said:
9 years ago
I don't understand about 2's complement. Can anyone explain it?
Nidhi kothari said:
10 years ago
1's complement of 0100 is 1011.
2's complement = 1's complement + 1.
1011.
+ 1.
= 1100.
2's complement = 1's complement + 1.
1011.
+ 1.
= 1100.
Harsh said:
10 years ago
What is 2's complement of number 0100?
Deepak said:
1 decade ago
How to find 9's complement?
Schnitz said:
1 decade ago
Complement = change (1 into 0) and (0 into 1).
Ex: 11111 = 00000 and 10101 = 01010.
1's complement is a regular complement, the above explanation.
2's complement is where you will change the last digit into '1' in your complement.
Ex: 11111 = 00001 and 10101 = 01011.
Ex: 11111 = 00000 and 10101 = 01010.
1's complement is a regular complement, the above explanation.
2's complement is where you will change the last digit into '1' in your complement.
Ex: 11111 = 00001 and 10101 = 01011.
Kulvinder said:
1 decade ago
I don't understand these complements can you explain in detail?
Hassan Umar said:
1 decade ago
To get 2s compliment you need to add 1 at the end of your 1s compliment e.g 10110 will change to 10111.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers