English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

In base ten numbers, if you had 3 - 10 , the answer would be given by subtracting 3 from 10 then inserting - ve sign.
3 - 10 = - (10 - 3) = - 7
Similarly with binary subtraction:-
11 - 101 = - (101 - 11) = - 1 0

2007-09-13 21:48:53 · answer #1 · answered by Como 7 · 0 0

Just subtract, nothing special.
Your question could actually be how can negative numbers be represented in binary. Again, just represent it with a negative sign on the left.

OK, I guess again that your question is how are negative numbers represented in computer binary memory where each bit can only represent either a 1 or 0. Then refer to the above answers :)

2007-09-10 06:40:17 · answer #2 · answered by back2nature 4 · 0 0

take the binary complement of the number being subtracted and add it to the other number.

2007-09-10 06:31:18 · answer #3 · answered by 037 G 6 · 1 0

Just like in base 10, if you subtract a larger number from a smaller number, you get a negative number.

The thing is, in base 2, what you end up with is a number in either one's complement or two's complement (modern computers store them in two's complement).

So, you count upward from 0 as 0000,0001,0010,...

Negative one in one's complement is the negation of one...so it is 1110. In two's complement, you add one to get 1111.

2007-09-10 06:34:26 · answer #4 · answered by PMP 5 · 0 0

fedest.com, questions and answers