sprintf can convert from number to string.
Can you post your function?