Softerra LDAP Administrator HelpShow AllHide All

BITWISE_XOR

Takes two numbers as operands and does XOR on every bit of two numbers. The result of XOR is 1 if the two bits are different.

Syntax

BITWISE_XOR (expression, expression)

Arguments

expression - expression of a numeric data type.

Examples

The following example shows the results of using bitwise XOR operation between 58 and 198.

BITWISE_XOR (58, 198)

0011 1010
1100 0110
---- ----
1111 1100

The binary representation of 58 is 0011 1010. The binary representation of 198 is 1100 0110. Performing the bitwise XOR operation on these two values produces the binary result 1111 1100, which is decimal 252.