How do you find the negative in Binary Code?

I am trying to work the following problem, but I am not sure what is being asked. "Find the negative of the two's complement form of 0.0101100(subscript-2cm)?"

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:
  • Is there a patent for Directional gun drilling?
  • In the Kerala Engineering Exam I got rank = 15101. I have got reservation. Where will I get admission?
  • What is the definition of nominal voltage?
  • Could residual stresses in a 6061-T6 stamping result in fracture during forming?
  • What is ohms law? can u explain it in simple terms?
  • Design and construction of a device to stabilise ac mains supply?
  • 10 points for the best answer regarding BITS Pilani campuses?
  • Can aeroplane hold in the air for while?...?
  • I will give u 10 points if u tell me about premavira project planning..what is this about??