Link Search Menu Expand Document

xor

Explanation Find the exclusive OR of the two numbers.
*Added since Version 5.0.1*
*Not supported in Mobile, AI*
Call format var s = xor( arg1, arg2 )
Return value Calculation result
Arguments Number arg1 The target number. It is automatically converted to a 32-bit integer internally.
Number arg2 The target number. It is automatically converted to a 32-bit integer internally.
Exception None
Example of use
var a;
a = xor(0x0000FFFF, 0x4000C000);    /* aは0x40003FFFとなる */
Related item or, and methods