answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

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.

Related questions

Why 2's complement representation the best choice?

Because addition and subtraction in 2's complement representation do not need to care about sign.


How the procedure for sign modulus method and 2's complement method for storing positive and negative numbers?

explain the procedure for sign modulus method and 2's complement method for storing positive and negative numbers?


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 bigger 1's complement or 2's complement?

The same number of bits are used to represent 1's complement and 2's complement. To take 2's complement, first take the 1's complement, then add 1 to the result.


What is rule for operations sign?

14 4 2 5 7 = 32


What is the 2's complement of -24?

26


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.


What are 1's and 2's complement numbers explain?

1's complement numbers are those numbers which are obtain after converting 1 to 0 and 0 to 1. for e.g. 110010 1's complement of this number is:001101 2's complement is obtain by adding 1 in 1's complement of number. for e.g. 2's complement of above number:001101 + 1 --------------- 001110


The twos complement of 11001101 is?

00110011 is the 2's complement for this unsigned number and 10110011 if this is a signed number