Hex

Converts the variable to a string representation of a hexadecimal value (16 bit). Hex8 formats the value to 8 digits. (1 to 8 can be used for digits)

Debug Hex A   ' If A is 123ABC, 123ABC is printed
Debug Hex8 A  ' If A is 123ABC, bb123ABC is printed ('b' is interpreted as blank space in this case).
Debug Hex5 A  ' If A is 123ABC, 23ABC is printed, first character is truncated.

See also Dec