hex$()

Return the hexadecimal representation of value. The dollar character in command name is optional so you can write it as hex() if you like.

Syntax:
variable = hex$( value )
variable = hex( value )

Example:
print hex$( 255 )
will print on console hexadecimal value: ff