English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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)?"

2007-07-19 05:10:17 · 4 answers · asked by wcr98 1 in Science & Mathematics Engineering

4 answers

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)

2007-07-19 07:13:11 · answer #1 · answered by Anonymous · 0 0

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.

2007-07-19 12:16:27 · answer #2 · answered by morningfoxnorth 6 · 0 0

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.

2007-07-19 12:14:29 · answer #3 · answered by Anonymous · 0 0

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.

2007-07-19 12:38:24 · answer #4 · answered by Rich Z 7 · 0 0

fedest.com, questions and answers