basic.dtx

Function/BASIC Program, Releases: AP and R83

Converts decimal to hexadecimal.

Syntax

dtx(num.expression)

Description

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

The expression can be in the range {+/-}140737488355327*(10(-p)), where the 'p' represents the precision number.

Example

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

The variable 'fid' is a decimal Pick frame number (frame-id). This
program shows the frame-id in hexadecimal.

See Also

Command Name Type Description
txl.xtd Verb: Access Converts hexadecimal number to decimal.
basic.functions Definition elements in FlashBASIC or Pick/BASIC language expressions, returning a single value in place, as a function of the arguments. A function can be used anywhere a variable or expression is used.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.