AMOSi:Hex$
an example can be found on AMOSPro_Examples:Examples/H-5/Help_56.AMOS
Translates a number into a list of HEXadecimal digits.
These digits can take any of sixteen values from "0" to "9" and "A" through "F".
=Hex$(number)
Returns the Hexadecimal number using the fewest possible digits.
=Hex$(number,n)
Returns the first n digits in the number.