Thanks. I think I found the problem. I was converting a number to hex before inputing it to the text formatter expecting it to format the hex number. Instead I should be using the formatter actor to both convert to hex and format it. I was confused by the help note below that says "P1:nX - print n hexidecimal digits" - not mentioning that it also converts numbers to hex.
Thanks for your help!