Computer Subtraction: Can Computers Subtract?

  • Thread starter Thread starter skywolf
  • Start date Start date
  • Tags Tags
    Computer
Click For Summary
Computers can perform subtraction by using addition through the method of 2's complement, which simplifies the circuitry needed for calculations. Mathematically, subtraction can be expressed as addition of a negative, making the operations fundamentally similar. This approach allows computers to handle both signed and unsigned numbers efficiently. While subtraction in binary is not inherently more complex than addition, the use of complements streamlines the process. The same principle applies to decimal numbers, although it is less straightforward than in binary.
skywolf
Messages
81
Reaction score
0
why can't a computer subtract, or can it, and its just easier to do it by adding?
 
Engineering news on Phys.org
In the mathematical point of view, adding or subtracting are the same operation, i.e,

A - B = A + (-B)

That is a reason why computer science concern about signed and unsigned numbers. :smile:
 
Its not that it is any more difficult to subtract in binary than to add --- just simply the fact that we don't need to build two sets of circuits, when one set can do both functions by simply using complement operation. By the way, the same can be done with decimal numbers, its just not quite as easy as with binary.

KM
 
I am trying to understand how transferring electric from the powerplant to my house is more effective using high voltage. The suggested explanation that the current is equal to the power supply divided by the voltage, and hence higher voltage leads to lower current and as a result to a lower power loss on the conductives is very confusing me. I know that the current is determined by the voltage and the resistance, and not by a power capability - which defines a limit to the allowable...

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 53 ·
2
Replies
53
Views
6K
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
430
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 42 ·
2
Replies
42
Views
5K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
5
Views
2K
  • · Replies 29 ·
Replies
29
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K