Does anyone know a function that will convert a decimal integer to a hexidecimal in the form of a string.

so 1 would become "01" or 10 would become "0A"
thanks