int_to_hex/2—convert an integer value to a string containing its hexadecimal notation

The int_to_hex/2 primitive converts an integer value to a string containing its  hexadecimal notation.

$STRVAL=int_to_hex($INTVAL)

int_to_hex/2 arguments

Argument

Mode

Type

Description

$INTVAL

Input

INTEGER

Specifies the integer value to be converted to hexadecimal notation

$STRVAL

Output

STRING

The hexadecimal notation of the integer returned as a string

Use int_to_hex/2 to convert the integer value specified in the $INTVAL argument to a string containing its hexadecimal notation, returned in $STRVAL.

int_to_hex/2 example

$E.msg = concat(['Event # 0x',int_to_hex($E.event_handle)]);
Was this page helpful? Yes No Submitting... Thank you

Comments