# ⇩ SUBTRACTION USING COMPLEMENTS ⇩

#### 2'S COMPLEMENT SUBTRACTION CALCULATOR

Enter positive whole numbers.

# ⇩ SUBTRACTION USING COMPLEMENTS ⇩

## INFORMATION

A positive binary number can be subtracted from another, following the steps below.

• If the minuend and subtrahend have different number of digits, prepend zeros to the shorter one till the number of digits become equal.

• Add the minuend to the 2's complement of the subtrahend.

• If the result has an extra digit (end carry), discard it. The result is the remaining part of the sum.

• If the result does not have an end carry, take the 2's complement of the sum.

### WHAT IS 2'S COMPLEMENT SUBTRACTION CALCULATOR?

2's complement subtraction calculator,

• Uses the 2's complement of the subtrahend to calculate the difference in a subtraction operation,
• Illustrates the solution step by step using animations.

### HOW TO USE THE 2'S COMPLEMENT SUBTRACTION CALCULATOR?

You can use the 2's complement subtraction calculator in two ways.

• #### USER INPUTS

You can enter the minuend and subtrahend to the input boxes and click on the "CALCULATE" button. The result and explanations appaer below the calculator

• #### RANDOM INPUTS

You can click on the DIE ICON next to the input boxes. If you use this property, two random numbers are generated and entered to the calculator, automatically. You can see the result and explanations below the calculator. You can create your own examples and practice using this property.

• #### CLEARING THE INPUT BOX

To find the difference in other subtraction operations you can clear the input box by clicking on the CLEAR button under the input box.

• You can copy the generated solution by clicking on the "Copy Text" link, appaers under the solution panel.

• Even you can download the solution as an image file with .jpg extension if you click on the "Download Solution" link at the bottom of the solution panel. You can share the downloaded image file.