DECTOHEX

Returns the hexidecimal representation of a number.

Syntax

DECTOHEX(decValue)

  1. decValue - the decimal value which should be converted to a hexadecimal value - Value type: number

Remarks

  1. The function returns the hexidecimal representation of decValue, as a text in lower letters (like “ffaa88”)

  2. Decimal places of decValue are ignored.

  3. A negative decValue returns a negative hexadecimal value.

Examples

Example 1 - DECTOHEX of a single value:

Example 2 - DECTOHEX for a range of values:

Last updated