Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ ¹ ² ³ °
 

You are not logged in. #1 20080117 16:07:25
two's complement number systemi'm taking a course in assembly language x_x Last edited by mikau (20080117 16:09:38) A logarithm is just a misspelled algorithm. #4 20080117 18:54:08
Re: two's complement number systemi'm not sure but i think 3(101) ........"To my mind having care and concern for others is the highest of human qualities" .........Fred Hollows #5 20080118 00:23:34
Re: two's complement number system
Two's complement is "regular binary" for positive values. I'm not certain if that's what you were trying to say. "In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..." #6 20080118 02:08:15
Re: two's complement number systemwe use this system because we can use the exact same set of logic gates to add two normal binary integers, as we can to add two two's comlement binary integers. without any overhead such as 'if first bit is 1, then do this instead because it is negative' it can simply be treat as any other positive integer, and due to overflow's ends up giving the correct answer Last edited by lucadeltodesco (20080118 02:11:29) The Beginning Of All Things To End. The End Of All Things To Come. #8 20080118 02:22:36
Re: two's complement number systemalso note that this doesn't just work for binary numbers. if we define the negative integer as kx where k is the number 1 followed by 'n' 0's where n is how many bits the number is. i.e. 0101 = 100000101 = 1011. The Beginning Of All Things To End. The End Of All Things To Come. #9 20080118 05:14:22
Re: two's complement number systemThere is one more thing (two, perhaps). The other way to do negative numbers is to just have a sign bit, and the rest be interpreted as a normal positive value. Where else does 2's complement succeed when this method fails. "In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..." #10 20080118 12:31:59
Re: two's complement number systemWow! look at the response this threads getting!
by 'regular binary' i meant place value, as in 1010 = 1*2^3 + 0*2^2 + 1*2^1 + 0*^0 = 12d Last edited by mikau (20080118 12:38:05) A logarithm is just a misspelled algorithm. #11 20080121 05:11:28
Re: two's complement number systemyou're right about the complement part, its what i said above when i went on two 10's complement with decimal. The Beginning Of All Things To End. The End Of All Things To Come. 