Difference between revisions of "BitXor"
Jump to navigation
Jump to search
ZachStrout (talk | contribs) |
|||
Line 10: | Line 10: | ||
! Parameter Name !! Default Value !! Meaning | ! Parameter Name !! Default Value !! Meaning | ||
|- | |- | ||
− | | ''i'' || number, default 0 || first integer | + | | ''i'' || number, default 0 || first integer argument |
|- | |- | ||
− | | ''j'' || number, default 0 || second integer | + | | ''j'' || number, default 0 || second integer argument |
|} | |} | ||
Revision as of 22:49, 9 November 2023
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.
Arguments
Parameter Name | Default Value | Meaning |
---|---|---|
i | number, default 0 | first integer argument |
j | number, default 0 | second integer argument |
Example
bitAnd(14, 7) // returns 9