Xor(Function)
Gets the exclusive disjunction (exclusive-OR) of 2 expressions.
<Expression 1> Xor <Expression 2>
Parameters
<Expression 1>
|
The expression that requests the exclusive disjunction (integer type).
|
<Expression 2>
|
The expression that requests the exclusive disjunction (integer type).
|
Return Value
Returns the value of the integer.
The content of the value is the requested exclusive disjunction.
Description
Each of the values of <Expression 1> and <Expression 1> will be given as a 32-digit binary number and each bit will be given the exclusive disjunction.
Values from -2147483648 to 2147483647 can be specified for <Expression 1> and <Expression 2>.
When the values of <Expression 1> and <Expression 2> are double-precision type, the fractional part is handled as a rounded value.
Example
Get the exclusive disjunction (exclusive-OR) of 12 and 31.
DATA1&=12
DATA2&=31
DATA3&=DATA1& Xor DATA2&
The result is as follows:
DATA3&=19