hex

Syntax

hex(X, [reverse=false])

Arguments

X is an integer scalar/vector.

reverse is a Boolean value indicating wheather to reverse the order of the result. The default value is false.

Details

Convert integers to hexadecimal. The data type of the result is STRING.

Examples

$ hex(16 25);
["00000010","00000019"]

$ hex(16 25,true);
["10000000","19000000"]