Version 2 of ^

Updated 2007-11-02 14:37:43 by LV

expr bit-wise "xor" operator

Arguments must be integers, result is an integer.

Bit n of the result is 1 if bit n of the two arguments differ. Otherwise, bit n of the result is 0.

Examples

% expr 0b010 | 0b000
2

[So, what do I need to add to this example so the result is binary as well? Some sort of format - but I don't see a binary conversion sequence in the docs...]