How do you find the negative in Binary Code?
Answer:
since the given binary code is +ve therefore its 1's compliment is same as the binary code given .
2's compliment is 1's compliment + 1
= 0.0101100 + 1 = 1.0101100
-ve of 2's compliment is - 1.0101100
or 1,1.0101100(in sign magnitude form)
There are three ways of representing signed numbers in binary: sign-magnitude, one's complement, and two's complement, which is what is wanted here. You get the one's complement by inverting every bit in the binary representation, and add one to that to make it the two's complement. Do that in this case.
Need more information. What does the "cm" part mean? The number you put in has a binary point. Most computers use 2's complement only for integers, not for fixed or floating point numbers.
In 1's complement, you just reverse all the bits 0-->1, and 1-->0. This includes the leftmost (sign) bit.
In 2's complement, you form the 1's complement and then add 1.
In two's complement you change all the binary zeroes to ones and the binary ones to zeroes. Then you add binary one to the result.
The answers post by the user, for information only, FunQA.com does not guarantee the right.
More Questions and Answers: