hexstr(
VALUE
)

The hexstr( function converts a number to text formatted as a hexadecimal number.


Parameters

This function has one parameter:

value – is the number you want to convert to hexadecimal. This parameter can also be text or a raw Binary Data value.


Description

This function converts a number or binary data value to text formatted as a hexadecimal number. See Non Decimal Numbers for background information on hexadecimal numbers.

hexstr(12) ☞ 000000000000000C
hexstr(3021) ☞ 0000000000000BCD
hexstr(100000) ☞ 00000000000186A0

The hexstr( function can also be used to convert a Binary Data value to hexadecimal text.

hexstr(longword(59833456)) ☞ 70FC9003
hexstr(longword(59833456)+longword(98384950)+longword(374958392)) ☞ 70FC9003363CDD0538695916

The function can also be used to convert text to hexadecimal. The text is first converted to UTF8 encoded binary data, then to hexadecimal.

hexstr("1") ☞ 31
hexstr("ABCD") ☞  41424344 

Note: This function is equivalent to:

radixstr("hex",number)

See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but now supports 64 bit values (so there may be additional zero padding for smaller numbers).