dec2hex() Function

Function

dec2hex( value, place )

Converts a Decimal number to a Binary number as text.

Parameters

Keyword Type Description

value

Text

Decimal value to convert, such as 123.

place

Number

The number of places to return.

Returns

Text

Usage considerations

Using the value parameter

Negative number values for value are handled using the 2's complement method.

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

dec2hex(16) returns 10

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

On This Page

FEEDBACK