• Pure

    Returns the result of connecting all bits of both numbers using XOR (Difference) (in regards of binary numeral system). Each Bit being different between x and y becomes 1; every bit being equal becomes 0.

    2 xor 5 => 7 (0010 xor 0101 => 0111) 6 xor 8 => 14 (0110 xor 1000 => 1110)

    Parameters

    • x: number
    • y: number

    Returns number

    Patch

    1.31

Generated using TypeDoc