Takes an integer and returns text of the value in hexadecimal.
number to hex (integer value) returns text
set myHexValue to (number to hex 45) write log myHexValue