Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Computer subtraction

  1. Sep 22, 2006 #1
    why cant a computer subtract, or can it, and its just easier to do it by adding?
  2. jcsd
  3. Sep 22, 2006 #2
  4. Sep 24, 2006 #3
    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. :rofl:
  5. Oct 1, 2006 #4
    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.

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Computer subtraction Date
Analog Computers Jan 9, 2018
ALU status register carry equation Oct 19, 2017
Courses for Quantum Computing Sep 6, 2017
How Does Subtractive Dither Work Feb 1, 2017