TRY NEW VERSION

BIN2HEX

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

Converts a binary number to hexadecimal.

Parameters:

Name Type Description
arg1 any

Is the binary 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.BIN2HEX(1110011100, 4));
builder.SaveFile("xlsx", "BIN2HEX.xlsx");
builder.CloseFile();

Resulting document