BITAND
Returns a bitwise "AND" of two numbers.
Syntax
expression.BITAND(arg1, arg2);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number | The first decimal representation of the binary number to evaluate. | |
arg2 | Required | ApiRange | ApiName | number | The second decimal representation of the binary number to evaluate. |
Returns
number
Example
- Code
- Result
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.BITAND(13, 25));