BitXor

From MiniScript Wiki
Revision as of 14:46, 11 November 2023 by Treytomes (talk | contribs) (Show the correct function call.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

bitXor treats its arguments as integers, and computes the bitwise `xor`: each bit in the result is set only if the corresponding bit is set in exactly one (not zero or both) of the arguments.

See also: bitAnd; bitOr

Arguments

Parameter Name Default Value Meaning
i number, default 0 first integer argument
j number, default 0 second integer argument


Example

bitXor(14, 7)	// returns 9