XTD Function

Converts a hexadecimal value to its decimal equivalent.

Syntax

XTD(expression)

Syntax Elements

expression is any valid DataBasic expression.

Only the characters 0-9 and A-F are valid. Conversion ceases at the first invalid character.

Return Value

Returns the decimal equivalent of expression.

See Also

DTX function, OCONV function, FMT function.

Example

V = XTD("3A35")

assigns the value 14901 (the decimal equivalent of the hexadecimal value X'3A35') to the variable V.