MEFA Unit-5

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

NUMBER SYSTEM ARITHMETIC

Binary Addition
Adding two binary numbers together is easy,
keeping in mind the following four addition
rules:
(1) 0 + 0 = 0
(2) 0 + 1 = 1
(3) 1 + 0 = 1
(4) 1 + 1 = 10
BINARY SUBTRACTION

Just like subtraction in any other base


◦ Minuend 10110
◦ Subtrahand - 10010
◦ Difference 00100
And when a borrow is needed. Note that the
borrow gives us 2 in the current bit position.

5
When there is no borrow into the msb position,
then the subtrahend in not larger than the
minuend and the result is positive and correct.
If a borrow into the msb does occur, then the
subtrahend is larger than the minuend.

6
Octal Addition

Octal addition is performed just like decimal


addition, except that if a column of two addends
produces a sum greater than 7.
you must subtract 8 from the result, put down that
result, and carry the 1.
Remember that there are no such digits as "8"
and "9" in the octal system, and that 810 = 108 , 910
= 118, etc.

You might also like