Determine the two’s complement of the binary number 011001012. Explain how you did the conversion, step by step.
Next, determine the two’s complement representation of the quantity five for a digital system where all numbers are represented by four bits, and also for a digital system where all numbers are represented by eight bits (one byte). Identify the difference that “word length” (the number of bits allocated to represent quantities in a particular digital system) makes in determining the two’s complement of any number.
In a computer system that represents all integer quantities using two’s complement form, the most significant bit has a negative place-weight. For an eight-bit system, the place weights are as follows:
Given this place-weighting, convert the following eight-bit two’s complement binary numbers into decimal form:
- 010001012 =
- 011100002 =
- 110000012 =
- 100101112 =
- 010101012 =
- 101010102 =
- 011001012 =
In an eight-bit digital system, where all numbers are represented in two’s complement form, what is the largest (most positive) quantity that may be represented with those eight bits? What is the smallest (most negative) quantity that may be represented? Express your answers in both binary (two’s complement) and decimal form.
Two’s complement notation really shows its value in binary addition, where positive and negative quantities may be handled with equal ease. Add the following byte-long (8 bit) two’s complement numbers together, and then convert all binary quantities into decimal form to verify the accuracy of the addition:
Published under the terms and conditions of the Creative Commons Attribution License