0% found this document useful (0 votes)
307 views7 pages

Binary Subtraction: St. Paul University Surigao

The document provides information about binary subtraction. It begins by defining binary subtraction and noting that it is similar to decimal subtraction but uses base 2 numbers. It then provides the rules for binary subtraction, such as 0-0=0 and 1-1=0. Examples are given of how to perform the subtraction by borrowing from the next column like in decimal. The steps of a sample subtraction problem are shown. Further examples of binary subtraction problems and their solutions are provided. Binary subtraction using 1's complement is also explained with examples.

Uploaded by

Keziah Aliwanag
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
307 views7 pages

Binary Subtraction: St. Paul University Surigao

The document provides information about binary subtraction. It begins by defining binary subtraction and noting that it is similar to decimal subtraction but uses base 2 numbers. It then provides the rules for binary subtraction, such as 0-0=0 and 1-1=0. Examples are given of how to perform the subtraction by borrowing from the next column like in decimal. The steps of a sample subtraction problem are shown. Further examples of binary subtraction problems and their solutions are provided. Binary subtraction using 1's complement is also explained with examples.

Uploaded by

Keziah Aliwanag
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

St.

Paul University Surigao


St. Paul University System
8400 Surigao City, Philippines

Binary Subtraction
Binary subtraction is another basic binary operation. The basic operations in mathematics
are addition, subtraction, multiplication, and division. To recall, binary operation
represents the operations of mathematics that are performed on two operands and the
result is obtained. Here, the topic of a binary subtraction operation is explained in detail.
The concepts that are included in this lesson are:

 What is Binary Subtraction?


 Procedure to subtract two binary numbers.
 Examples of Subtracting two Binary Numbers

What is Binary Subtraction?

Can you subtract binary numbers? The answer is yes. Subtraction of binary numbers is an
arithmetic operation similar to the subtraction of base 10 numbers. For example, 1 + 1 + 1
= 3 in base 10 and 1 + 1 + 1 = 11 in binary number system. When you add and subtract
binary numbers you will need to be careful when borrowing as these will take place more
often.

When you subtract several columns of binary digits, you must take into account the
borrowing. when 1 is to be subtracted from 0, the result is 1 with borrowed from the
previous position.

Binary Subtraction Rule Chart

Rules and tricks: Binary subtraction is much easier than the decimal subtraction when you
remember the following rules:

 0–0=0
 0 – 1 = 1 ( with a borrow of 1)
 1–0=1
 1–1=0

How to Subtract Binary Numbers?

Learn how to do binary subtraction using the example: 1010 – 101


St. Paul University Surigao
St. Paul University System
8400 Surigao City, Philippines

Procedure to do Binary Subtraction:

1010
(-) 101

 Step 1: First consider the 1’s  Step 3: So, subtract the value in the 10’s
column, and subtract the one’s place, ( 0 – 0 ) = 0.
column,( 0 – 1 ) and it gives the
result 1 as per the condition of binary 1 Borrow
subtraction with a borrow of 1 from 1010
the 10’s place. (-) 1 0 1
——————
01

 Step 4: Now subtract the values in 100’s


 Step 2: After borrowed 1 from the
place. Borrow 1 from the 1000’s place
10’s column, the value 1 in the 10’s
( 0 – 1 ) = 1.
column is changed into the value 0
1 1 Borrow
1 Borrow
1010
1010
(-) 1 0 1
(-) 1 0 1
——————
—————
0101
1

So, the resultant of the subtraction operation is 0101.

When you cross-check the binary subtraction resultant value with the decimal value, the resultant
value should be the same.

The binary value 1010 is equal to the decimal value 10 and 101 is equivalent to 5

So, 10 – 5 = 5

Therefore, the decimal number 5 is equal to the binary number 0101.


St. Paul University Surigao
St. Paul University System
8400 Surigao City, Philippines

Examples on Binary Subtraction

Consider other examples of binary subtractions are as follows:

Example 1: 0011010 – 001100 Example 2: 0100010 – 0001010

Solution: Solution:

1 1 Borrow 1 1 Borrow
0011010 0 1 0 0 0 1 0 = 3410
(-) 0 0 1 1 0 0 (-) 0 0 0 1 0 1 0 = 1010
—————— ——————
0001110 0 0 1 1 0 0 0 = 2410

Decimal Equivalent :

0 0 1 1 0 1 0 = 26
0 0 1 1 0 0 = 12

Therefore, 26 – 12 = 14

The binary resultant 0 0 0 1 1 1 0 is


equivalent to the 14

Binary Subtraction Using 1’s Complement


 The number 0 represents the positive sign
 The number 1 represents the negative sign

Procedures for Binary Subtraction by 1’s Complement

 Write the 1’s complement of the subtrahend


 Then add the 1’s complement subtrahend with the minuend
 If the result has a carryover, then add that carry over in the least significant bit
 If there is no carryover, then take the 1’s complement of the resultant and it is negative.

Binary Subtraction Questions Using 1’s Compement


St. Paul University Surigao
St. Paul University System
8400 Surigao City, Philippines

Question 1:

(110101)2 – (100101)2

Solution:

(1 1 0 1 0 1)2 = 5310

(1 0 0 1 0 1)2 = 3710 – subtrahend

Now take the 1’s complement of the subtrahend and add with minuend.

1 carry

110101

(+) 0 1 1 0 1 0

001111

1 carry

——————

010000

Therefore, the solution is 010000

(010000)2 = 1610

Question 2:

(101011)2 – (111001)2

Solution:

Take 1’s complement of the subtrahend

111

101011
St. Paul University Surigao
St. Paul University System
8400 Surigao City, Philippines

(+) 0 0 0 1 1 0 (1’s complement)

Binary Division
The binary division operation is similar to the base 10 decimal system, except the base 2 system.
The division is probably one of the most difficult operations of the basic arithmetic operations.
There are different ways to solve division problems using binary operations. Long division is one
of them and the easiest and the most efficient way. This section has been designed to answer
questions about binary division, including:

 What is Binary division?


 Procedure to add two binary numbers
 Examples to Solve Binary division

Binary Division Rules

The binary division is much easier than the decimal division when you remember the following
division rules. The 3 main rules of the binary division include:

 1÷1 = 1
 1÷0 = 0
 0÷1 = Meaningless
 0÷0 = Meaningless

Similar to the decimal number system, the binary division is similar which follows the four-step
process:

 Divide
 Multiply
 Subtract
 Bring down

Important Note: Binary division follows the long division method to find the resultant in an
easy way.

Comparison with Decimal Value

(01111100)2 = (1111100)2 = 12410

(0010)2 = (10)2 = 210


St. Paul University Surigao
St. Paul University System
8400 Surigao City, Philippines

You will get the resultant value as 62 when you divide 124 by 2.

So the binary equivalent of 62 is (111110)2

(111110)2 = 6210

Both the binary and the decimal system produce the same result.

Binary Division Examples


Question: Solve 01111100 ÷ 0010

Solution:

Given

01111100 ÷ 0010

Here the dividend is 01111100 and the divisor is 0010

Remove the zero’s in the Most Significant Bit in both the dividend and divisor, that doesn’t
change the value of the number.

So the dividend becomes 1111100 and the divisor becomes 10.

Now, use the long division method.

 Step 1: First, look at the first two numbers in


the dividend and compare with the divisor.
Here 11 is less than 10, then add the number
1 in the quotient place. Then subtract the
value, you get 1 as remainder.
 Step 2: Then bring down the next number
from the dividend portion and do the step 1
process again
 Step 3: Repeat the process until the
remainder becomes zero by comparing the
dividend and the divisor value.
 Step 4: Now, in this case, after you get the
remainder value as 0, you have zero left in
the dividend portion, so bring that zero to the
quotient portion.
St. Paul University Surigao
St. Paul University System
8400 Surigao City, Philippines

Therefore, the resultant value is quotient value which is equal to 111110

So, 01111100 ÷ 0010 = 111110

Example 2: Solve using the long division method: 101101 ÷ 101

Solution:

So, when you bring down the fourth bit of the dividend, it does not match with the divisor. In
order to bring down the 5th and 6th bit of the dividend, add two zeros in the quotient value.

You might also like