patternMinor
XOR two numbers
Viewed 0 times
xortwonumbers
Problem
Is there an intuitive meaning of XOR of two numbers not involving binary and just decimal? Or is is always converted into binary and then XORed?
Solution
Bitwise operations like (bitwise) AND, OR, and XOR don't make much sense from the perspective of decimal expansion. They do make some sense in bases which are powers of 2 like hexadecimal, since in such bases they also operate digit by digit.
Context
StackExchange Computer Science Q#53349, answer score: 8
Revisions (0)
No revisions yet.