跳到主要内容

OCT2HEX

Converts an octal number to hexadecimal.

Syntax

expression.OCT2HEX(arg1, arg2);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe octal number to convert.
arg2OptionalApiRange | ApiName | numberThe number of characters to use.

Returns

number

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.OCT2HEX(7777777634, 4));