# System Functions

ATH( ) | Convert Hex

## Format

ATH(hex_string$[,ERR=stmtref])
Where:

hex_string$ | Hex string expression to be converted to ASCII. The string must be an even number of bytes in length and consist of only the characters 0 (zero) through 9 and A through F.
stmtref | Program line number or statement label to which to transfer control.

## Returns

ASCII value corresponding to string of Hex data.

## Description

The ATH( ) function converts string containing valid Hexadecimal data to ASCII. The ASCII string returned by the ATH( ) function is the converted value of each set of two Hex characters to one ASCII character.

## Example

h$="414243"
?ath(h$)
ABC
ath ("414240") ! yields AB@ (Hex 40= "@")