[]
        
(Showing Draft Content)

HEX2BIN

This function converts a hexadecimal number to a binary number.

Syntax

HEX2BIN(number, [places])

Arguments

This function has these arguments:

Argument

Description

number

[Required] Hexadecimal numeric value to convert, must be between FFFFFFFE00 and 1FF

places

[Optional] Number of characters to return; if not an integer, the number is truncated

Remarks

This function returns an error when the number is not a valid hexadecimal value or if the value for places is non-numeric or negative. If places is omitted, the calculation uses the minimum number of characters necessary. This argument is useful for adding leading zeros to the result.

Examples

HEX2BIN("F",5) gives the result 1