hex2bin() Function

Function

hex2bin( value, place )

Converts a Hex number as text to a Binary number as text.

Parameters

Keyword Type Description

value

Text

Hex value as text to convert, such as A5.

place

Number

The number of places to return.

Returns

Text

Usage considerations

Using the value parameter

Invalid digits for a value parameter, including signs, are ignored.

Using the place parameter

The default value for place is however many places are necessary to represent the number.

Examples

You can experiment with this function in the test box below.

Test Input

hex2bin(64) returns 1100100

Open in Github Built: Mon, Nov 29, 2021 (03:22:58 PM)

On This Page

FEEDBACK