110k views
2 votes
Prove the procedure stated in sec 1-5 for the subtraction of two number with (r-1) ` complement

User Rajasekar
by
8.1k points

1 Answer

2 votes

Final answer:

The procedure stated in section 1-5 for the subtraction of two numbers with (r-1) complement is used when subtracting numbers using a complement representation.

Step-by-step explanation:

The procedure stated in section 1-5 for the subtraction of two numbers with (r-1) complement is used when subtracting numbers using a complement representation. In this method, the (r-1) complement of the second number is added to the first number. Here are the steps to perform this subtraction:

  1. Find the (r-1) complement of the second number by subtracting each digit from the highest digit in the base (r). For example, if the base is 10, the (r-1) complement of 245 is 999 - 245 = 754.
  2. Add the (r-1) complement of the second number to the first number, including any carries.
  3. If there is a carry after adding the numbers, ignore it.
User GrantVS
by
8.6k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.