PickBASIC / FlashBASIC
dtx() function
.mdThe 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)
Decimal to hexadecimal
print dtx(255) ;* FF
See also
Referenced by
1 topic mentions dtx() function in its description.