Binary subtraction

We all are familiar with subtraction of decimal numbers.Similar operation can be performed on  binary numbers. In fact binary arithmetic is much simpler than decimal, since only two digits are involved ,0 and 1.Binary arithmetic is essential part of all the digital computers .lets go for it,

Rules for binary subtraction

A B difference borrow
0 0 0 0
1 0 1 0
1 1 0 0
0 1 1 1

In first three rows, there is no borrow ,while in last row (b=1)  .Similar to decimal number system ,it will be subtracted from the next higher binary position. See the example,

Example − SUBTRACTION

How to subtract two binary numbers?

EXAMPLE 1:
STEP 1:

STEP 2:

STEP 3:

STEP 4:


FINAL ANSWER:


EXAMPLE 2:
SOLUTION:


 

back to DIGITAL ELCTRONICS