跳到主要内容

BITXOR

Returns a bitwise "XOR" (Exclusive Or) of two numbers.

Syntax

expression.BITXOR(arg1, arg2);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe first decimal representation of the binary number to evaluate.
arg2RequiredApiRange | ApiName | numberThe second decimal representation of the binary number to evaluate.

Returns

number

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.BITXOR(5, 3));