Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Thank you, I had a mistake in the addition of the 1. Commented Dec 6, 2012 at 1:31
  • @pst I don't know what you're saying Commented Dec 6, 2012 at 1:32
  • I have another mini-question. What is the difference between my algorithm of negating a number and scanning the number from right to left and complementing all the bits after the first appearance of a 1? Commented Dec 6, 2012 at 1:34
  • @Lior I'm not sure it would work but you could try it out with pen and paper. Even if it did I assume the circuitry required would be far more that a simple bit inversion and add, which is very quick. Commented Dec 6, 2012 at 1:39
  • Ok, thank you :) If you want to read more about the "alternative conversion process" (as written in wikipedia) : en.wikipedia.org/wiki/Two%27s_complement Commented Dec 6, 2012 at 1:44