num_as_char function

Convert a number into a character sequence.