Question

In: Electrical Engineering

The standard method of representing negative numbers in the binary system is with 2's complement notation....

The standard method of representing negative numbers in the binary system is with 2's complement notation. What are the advantages and disadvantages of using this method to represent negative numbers?

Solutions

Expert Solution

Advantages-

1. 2s complement representation of signed integer is easier to manipulate in hardware (simpler and less expensive). First we just complement all the bits (also called as 1s complement) and then add 1 to the resulting 1s complement.

2. The programmer doesn't have to teach the computer to subtract by borrowing. Instead, it can complement and add.

3. In 1s complement there are two representations of zero (positive and negative zero) whereas, in 2s complement there's only one this is one of the major advantages of using 2s complement notation.

4. It is easier to determine the sign of a 2s complement number. If it begins with 0 it is positive if it begins with 1 it is negative.

Disadvantages-

1. 2s complement takes slightly longer to form negative of a number, whereas 1s complement is quicker.

2. 2s complement has an asymmetrical range, so the largest number causes overflow if you try to make it positive.


Related Solutions

(a) Convert the decimal numbers, 70 and -26 to binary in the signed 2’s complement system....
(a) Convert the decimal numbers, 70 and -26 to binary in the signed 2’s complement system. Make sure there are enough digits in the results to be able to perform arithmetic operations with these two numbers. (b) Perform in the signed 2’s complement system, (+70) + (-26) (c) Perform in the signed 2’s complement system, (-70) - (-26) (d) Perform in the signed 2’s complement system, (+70) + (+26)
7 – For the following operations: • write the operands as 4-bit 2's complement binary numbers,...
7 – For the following operations: • write the operands as 4-bit 2's complement binary numbers, • perform the operation shown, • show all work in binary operating on 4-bit numbers, and • identify overflow if necessary. a) 4 + 2 b) 4 – 2 c) 2 – 4 d) 4 + 4
Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary...
Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary with 4 bits to the right of the binary point. How is 00110100 (base 2) represented in 8-bit one's complement.  
Convert the following decimal numbers to 16-bit 2’s complement binary. Display your result in hexadecimal. a.3030...
Convert the following decimal numbers to 16-bit 2’s complement binary. Display your result in hexadecimal. a.3030 b.404 c.5050 d.-5050 e.-20000 Show work with steps
Write -127 as 8 bit signed binary number both using 2'complement and sign/magnitude notation.
Write -127 as 8 bit signed binary number both using 2'complement and sign/magnitude notation.
Design a 9’s complement of a Binary Coded Decimal
Design a 9’s complement of a Binary Coded Decimal
1. Obtain the 1’s complement, 2’s complement and sign magnitude system representation in 7 bits for...
1. Obtain the 1’s complement, 2’s complement and sign magnitude system representation in 7 bits for the following decimal numbers: a) 1510 b) -2110 c) 3510 d) -2710 2. Use 1’s and 2’s complement system to perform the following calculations and mention if there will be overflow or not: a) 1100 – 0101 b) 1010 + 0100 c) 01100 + 00111
Please read carefully. Using the minimum number of digits in 2’s complement notation, perform 25 –...
Please read carefully. Using the minimum number of digits in 2’s complement notation, perform 25 – 18 (subtraction by preserving addition). Show all the significant steps in your work by indicating the starting values, sign conversion and the addition operation aligning all numbers including the carry values in each position using the Courier New font. Indicate the final value as a decimal.
Show decimal values below in two complement binary notation with 6 bits. a) 18 b) -12
Show decimal values below in two complement binary notation with 6 bits. a) 18 b) -12
Find the solution of the following operation for binary numbers 11011.111- * 100101.01 using2'complement
Find the solution of the following operation for binary numbers 11011.111- * 100101.01 using2'complement
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT