answersLogoWhite

0

Want this question answered?

Be notified when an answer is posted

Still curious? Ask our experts.

Chat with our AI personalities

ReneRene
Change my mind. I dare you.
Chat with Rene
EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra
BeauBeau
You're doing better than you think!
Chat with Beau

Add your answer:

Earn +20 pts
Q: What is sign extension rule for 2 complement?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

What is the 8-bit sign-and-magnitude representation of the decimal number -2?

10


Why 2's complement is better than sign magnitude?

Because sign magnitude has 2 representations for 0 100000000000000000000 ( = -0) and 000000000000000000000 ( = +0) Clearly, -0 = +0. However, because of these two representations, different machines process sign magnitude differently at 0. Two's complement avoids this problem and is therefore used much more commonly.


Twos complement of a given 3 or more bit binary number of non-zero magnitude is the same the original number if all bits except the?

ANSWER: MSB IS 1 In the 2's complement representation, the 2's complement of a binary number is obtained by first finding the one's complement (flipping all the bits), and then adding 1 to the result. This representation is commonly used to represent signed integers in binary form. Now, if all bits except the sign bit are the same, taking the 2's complement of the binary number will result in the negative of the original number. The sign bit (the leftmost bit) is flipped, changing the sign of the entire number. For example, let's take the 4-bit binary number 1101 The 2's complement would be obtained as follows: Find the one's complement: 0010 Add 1 to the one's complement: 0011


What is the addition rule for two numbers with the same sign?

the sign of the result will be that same sign -2-4=-6 2+4=6 -45-35=-80 35+45=80 etc


What is the minimum number of bits required to represent 18427 in two's complement?

18427(10) = 1000111111111011(2)So, it will need 16 bits (16 digits from the binary value) for 18427 itself. For the complement (the sign), add 1 more bit: the answer is 17.