The xtd() function converts an expression from its hexadecimal format into its equivalent decimal format.
xtd(str.exp)
str.exp | Hexadecimal expression to convert to decimal format. |
When a nonhexadecimal string is passed to the xtd() function, 0 is returned.
This assigns 10 to number.
number = xtd("a")