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

dec2hex(16) returns 10

Open in Github Built: Wed, Aug 16, 2023 (04:37:39 PM)

On This Page

FEEDBACK