OCT2DEC
Converts an octal number to decimal.
Syntax
expression.OCT2DEC(arg1);
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. |
Returns
number
Example
Convert an octal number to decimal in a spreadsheet.
// How to get a decimal number from an octal in a spreadsheet.
// Use a function to convert an octal to a decimal number in a spreadsheet.
let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.OCT2DEC(7777777634));