# XTD

Updated: 11/30/2021, 7:00:45 PM
Created: 11/30/2021, 7:00:45 PM
Last Updated By: Jake Tuttle
Read Time: 1 minute(s)

# Description

The XTD function converts hexadecimal numbers into its decimal equivalent. It takes the general from:

XTD(expression)
1

Where:

expression should evaluate to a valid hexadecimal string.

The conversion process will halt at the first character that is not a valid base 16 character in the set [0- 9, A-F or a-f].

An example of use is as:

INPUT USER_VAL

CRT XTD(USER_VAL)
1
2
3

See also: DTX .

Go back to jBASE BASIC

Go back to Programmers' Reference Guide