跳到主要内容

HEX2BIN

Converts a hexadecimal number to binary.

Syntax

expression.HEX2BIN(arg1, arg2);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe hexadecimal 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.HEX2BIN("FFFFFFFF9C"));