# DTX

Updated: 10/14/2021, 2:20:00 PM
Created: 10/14/2021, 2:20:00 PM
Last Updated By: mikes
Read Time: 1 minute(s)

Tags: hexadecimal representation

# Description

The DTX function will return the hexadecimal representation of a numeric expression. It takes the general form:

DTX(expression)
1

Where expression must evaluate to a decimal numeric value or a runtime error will occur. An example of use may be as:

Decimal = 254
CRT DTX(Decimal)
1
2

to display ‘FE’.

See also: XTD.

Go back to jBASE BASIC

Go back to Programmers' Reference Guide