HEX$( number [, chars])

Returns a string giving the hexadecimal (base 16) value for the number.

chars is optional and specifies the number of characters in the string with zero as the leading padding character(s).