XTD Function

The XTD function converts hexadecimal numbers to decimal.

Format

XTD(n)

Parameter(s)

n

Specifies the hexadecimal number to be converted to decimal.

Example

OriginalValue=12

NewValue=XTD(OriginalValue)

PRINT NewValue

Displays:

18

 

OriginalValue="A1"

NewValue=XTD(OriginalValue)

PRINT NewValue

Displays:

161

See Also

Statement and Function Reference