TRY NEW VERSION

OCT2BIN

OCT2BIN(arg1, arg2) → { number | string | boolean }

Converts an octal number to binary.

Parameters:

Name Type Description
arg1 any

Is the octal number you want to convert.

arg2 any

Is the number of characters to use.

Returns:

Type
number | string | boolean

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.OCT2BIN(7777777634));
builder.SaveFile("xlsx", "OCT2BIN.xlsx");
builder.CloseFile();

Resulting document