Ask a Question
x

Choose Country Code

x

Direction

x

Ask a Question

  • Ask a Question
  • Scan a Question
  • Post MCQ
  • Note: File extension must be of jpg, jpeg, png, bmp format and file size must not exceed 5 MB
x

Ask a Question

x

Hire a Tutor

Answers and Solutions

What's Your Question?
Answer

The ones' complement of a binary number is defined as the value obtained by inverting all the bits in the binary representation of the number (swapping 0s for 1sand vice versa). ... In such a system, a number is negated (converted from positive to negative or vice versa) by computing its ones' complement.

Two's complement is the way every computer I know of chooses to represent integers. To get the two's complement negative notation of an integer, you write out the number in binary. You then invert the digits, and add one to the result.

Answer

1's complement

The 1's complement of a number is found by changing all 1's to 0's and all 0's to 1's. This is called as taking complement or 1's complement

2's complement

The 2's complement of binary number is obtained by adding 1 to the Least Significant Bit (LSB) of 1's complement of the number.

2's complement = 1's complement + 1

 

Answer

1's complement is a very easy method for representing negative numbers in binary number system. To represent any number which is negative first we have to consider the binary value of its positive magnitude in binary system, then we have to simply convert the 1’s with 0 and the 0s with 1 and we will get the 1's complement of that number which is also the negative value of that number.

As we have already discussed 2's complement represents any negative binary number. The concept comes from subtracting the number from 2N, where N is the number of bits of that number. So if we want to represent a negative binary number we have to first consider its positive magnitude, then subtracting that value form 2N ( where N is the number of bits of that particular number as stated earlier) that number is the negative equivalent of that negative number in 2's complement method.

Answer

1's compliment in binary num system is converting 0's to 1's and 1's to 0's.

ex:1's compliment of 10101 is 01010

2's complimeny in binary number system is (Find the 2's compliment of 10101)

a. get the 1's compliment of the given number

considering the above ex 1's compliment of the binary num 10101 is 01010

b. add  1 to the 1's compliment num we got i.e.,01010 

01010+1(binary addition)

solution:01011 (2's compliment).

Hope you will get an idea by seeing this example.

Happy Learning

Post Answer and Earn Credit Points

Get 5 credit points for each correct answer. The best one gets 25 in all.

Post Answer