Sunday, October 13, 2024
HomeFEATUREDBinary numbers subtraction using the complement methods - Steps

Binary numbers subtraction using the complement methods – Steps

STEPS FOR BINARY SUBTRACTION USING 1’s and 2’s Complement Method

  1. Make equal no of bits in both minuend and subtrahend
  2. Calculate
    • 1’s Complement of subtrahend if you’re performing subtracting using 1’s complement method.
    • 2’s complement of the subtrahend if you’re performing subtraction using 2’s complement method
      (Also view how to calculate 1’s and 2’s complements here.)
  3. Add result of step 2 with minuend to calculate the last sum.
  4. Inspect the last sum for carrying or overflow bit with the following conditions to calculate answer.
Image: datasagar.com

Example for further understanding.

datasagarhttp://www.DataSagar.com
The author of this blog post is a technology fellow, an IT entrepreneur, and Educator in Kathmandu Nepal. With his keen interest in Data Science and Business Intelligence, he writes on random topics occasionally in the DataSagar blog.
RELATED ARTICLES
- Advertisment -

Most Popular