TRUECALC
Functions

BITXOR

Bitwise XOR of two integers

Try it

When to use it

When should I use BITXOR?

Use BITXOR to compute the exclusive OR of two integers, which sets bits that differ between the two values — useful for toggling flags or simple checksums.

Used in

engineering · science

Syntax

BITXOR(number1, number2)

Examples

=BITXOR(9,5) // => 12
=BITXOR(2,4) // => 6
=BITXOR(12,12) // => 0

On this page