How to Subtract Binary Numbers

By eHow Internet Editor

Rate: (3 Ratings)

For those that work in the field of computers and the designing of them it is important to understand and be able to work in the binary number system. Unlike the decimal system that we all know and learned in school, the binary number system only uses the numerals zero and one. One of the basic ways to manipulate these numbers is through subtraction.

Instructions

Difficulty: Moderately Easy
Step1
Examine the subtraction problem that you must solve. Remember from grade school that a positive number subtracted from another positive number is the same as a negative number added to a positive number, then we can restructure the subtraction problem as an addition problem. This is called subtraction by the two's complement method.
Step2
Convert the number subtracted from the first number to its negative form, taking the one's complement of the number. To do this you must exchange all the ones in the number for zeroes and all zeroes for ones.
Step3
Add one to the ones complement you did in step two, forming the two’s complement. Now you have restructured the subtraction problem to an addition problem.
Step4
Take the original number and add it to the two's compliment of the second number as you would in any other addition problem in binary. Be mindful of the carries in each column of the addition problem.
Step5
Discard any carry bit that extends beyond the number of bit of the original or two's complement. You now have the answer to the problem of the second number subtracted from the first number.

Post a Comment

POST A COMMENT

Request a New How-To Article

Looking for more How To information? Chances are there’s an eHow member who knows how to do what you’re looking to do. Submit an article request now!

eHow Article: How to Subtract Binary Numbers

eHow Internet Editor

eHow Internet Editor

Category: Internet

Articles: See my other articles

Related Ads

Internet

Veesites
Meet Virginia DeBolt eHow’s Internet Expert.