Convert integers to ascii without division
Posted on 2003-03-23
I suspect this will be an easy question for anyone who has ever done embedded systems programming. I'm looking for interesting methods for converting integers to ascii strings -- other then the usual mod/div method. I have found one reference to a lookup table method in an old Usenet posting, however that reference included neither the table nor a method for generating one. I'd be most interested in seeing a method that worked for different integer sizes.
If there is a name for a technique or algorithm that does what I've described and yields some results when I look it up in Google, I'll give points for that.