L
Luke
How do I Xor two values together using a calculation?
Cheers
Cheers
How do I Xor two values together using a calculation?
Cheers
How do I Xor two values together using a calculation?
=BIN2DEC(SUBSTITUTE(DEC2BIN(A1)*1+DEC2BIN(B1)*1;2;0))
Dana DeLouis said:Would a Custom Function work for you?
Function BitXor(a, b)
BitXor = a Xor b
End Function
Here, A1 & B1 have the following two values:
123456789
987654321
=BitXor(A1,B1)
returns:
1032168868
Which seems to check with another program:
BitXor[123456789, 987654321]
1032168868
BitXor means a 'bit'wise Xor.
Hope I did this correctly. :>)
Dana DeLouis
Luke said:How do I Xor two values together using a calculation?
Cheers
-----Original Message-----
Hmmm. Never mind. Although "Help" says that a & b can be any expression,
it looks like they are limited to a size of "Long", or about 9-10 digits.
Dana
Dana DeLouis said:Would a Custom Function work for you?
Function BitXor(a, b)
BitXor = a Xor b
End Function
Here, A1 & B1 have the following two values:
123456789
987654321
=BitXor(A1,B1)
returns:
1032168868
Which seems to check with another program:
BitXor[123456789, 987654321]
1032168868
BitXor means a 'bit'wise Xor.
Hope I did this correctly. :>)
Dana DeLouis
How do I Xor two values together using a calculation?
Cheers
.