Difference between revisions of "Bit.bxor"

From ComputerCraft Wiki
Jump to: navigation, search
m (Above 1 and Below 0)
m (Above 1 and Below 0)
Line 6: Line 6:
 
I tried to research and work on numbers above 1, but it gets kind of confusing, at first it is simple(ex. (1,2)=3; (2,2)=0; (4,2)=6; (5,2)=7;), but then when you input (6,2) it equals 4. I tried working on this for half and hour with no luck. When I tried to work on numbers below 0 at first it was as confusing as above 1 and as simple as 0 and 1, but still a positive number. Then when I mixed negative and positive, I got 4294967295 from (-1,1). I didn't try to research it. So hopefully someone will edit this and explain how going above 1 works, and possibly include an equation or 2.
 
I tried to research and work on numbers above 1, but it gets kind of confusing, at first it is simple(ex. (1,2)=3; (2,2)=0; (4,2)=6; (5,2)=7;), but then when you input (6,2) it equals 4. I tried working on this for half and hour with no luck. When I tried to work on numbers below 0 at first it was as confusing as above 1 and as simple as 0 and 1, but still a positive number. Then when I mixed negative and positive, I got 4294967295 from (-1,1). I didn't try to research it. So hopefully someone will edit this and explain how going above 1 works, and possibly include an equation or 2.
  
--[[User:Zach1231|Zach1231]] 23:59, 26 February 2012 (UTC) Zach1231
+
--[[User:Zach1231|Zach1231]] 23:59, 26 February 2012 (UTC)

Revision as of 00:14, 27 February 2012

Explanation

XOR is similar to the OR gate, but the numbers can not be equal. (ex. 0V0=0; 1V0=1; 0V1=1; 1V1=0)

Above 1 and Below 0

I tried to research and work on numbers above 1, but it gets kind of confusing, at first it is simple(ex. (1,2)=3; (2,2)=0; (4,2)=6; (5,2)=7;), but then when you input (6,2) it equals 4. I tried working on this for half and hour with no luck. When I tried to work on numbers below 0 at first it was as confusing as above 1 and as simple as 0 and 1, but still a positive number. Then when I mixed negative and positive, I got 4294967295 from (-1,1). I didn't try to research it. So hopefully someone will edit this and explain how going above 1 works, and possibly include an equation or 2.

--Zach1231 23:59, 26 February 2012 (UTC)