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?
1110-0011=?
0 | 10 | |||
1 | 10 | |||
– | 0 | 0 | 1 | 1 |
1 | 0 | 1 | 1 |
How to subtract two binary numbers?
1000-0111=?
0 | 1 | 1 | ||
10 | ||||
– | 0 | 1 | 1 | 1 |
0 | 0 | 0 | 1 |
follow us at youtube raulstutorial electronics
Thank you.
It’s help me a lot for STET exame.
amazing tutorial.thank u thank u very much , You helped me more than my teacher,
i learned from u lot ..