write the 1 scomplement number and 2s complement number for the following decimal number -13
Answers
Answered by
0
Answer:
A brief introduction to 1's and 2's complement calculation:
Two's complement is the way every computer that I know of chooses to represent integers. To get the two's complement negative notation of an integer, you write out the number in binary. You then invert the digits (1's complement), and add one to the result.
Suppose we're working with 8 bit quantities and suppose we want to find how -28 would be expressed in two's complement notation. First we write out 28 in binary form.
00011100Then we invert the digits. 0 becomes 1, 1 becomes 0.
11100011Then we add 1.
11100100That is how one would write -28 in 8 bit binary.
:
Similar questions