OCT2BIN
Converts an octal number to binary.
Syntax
expression.OCT2BIN(arg1, arg2);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number | The octal number to convert. | |
arg2 | Optional | ApiRange | ApiName | number | The number of characters to use. |
Returns
number
Example
- Code
- Result
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.OCT2BIN(7777777634));