Binary Subtraction

The rules for binary subtraction are

1-0=1

0-0=0

1-1=0

0-1= 1 carry the 1 to the next bit with a 1 and take that 1

If there is a 0-1 on the largest bit then the number will become minus.

 

Example

1111-

1001=

0110

 

Minus Example

1001-

1101=

-100

 

 

Leave a comment