TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

DEC2OCT

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

Converts a decimal number to octal.

Parameters:

Name Type Description
arg1 any

Is the decimal integer 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.DEC2OCT(-100));
builder.SaveFile("xlsx", "DEC2OCT.xlsx");
builder.CloseFile();

Resulting document