dtx() function

The dtx() function converts a given decimal number to its corresponding hexadecimal equivalent. The number is first converted to an integer by truncating the fractional part.

Syntax

dtx(num.exp)

Parameter(s)

num.exp Specifies the decimal number to be converted to its corresponding hexadecimal equivalent. In the range {+/-}140737488355327*(10(-p)), where p represents the precision number.

Example(s)

The variable fid is a decimal D3 frame number (frame-ID). This program shows the frame-ID in hexadecimal.

input fid
crt "hex of " : fid : " is " : dtx(fid)