Subtraction - Algorithms For Subtraction

Algorithms For Subtraction

There are various algorithms for subtraction, and they differ in their suitability for various applications. A number of methods are adapted to hand calculation; for example, when making change, no actual subtraction is performed, but rather the change-maker counts forward.

For machine calculation, the method of complements is preferred, whereby the subtraction is replaced by an addition in a modular arithmetic.

Read more about this topic:  Subtraction