Subj : Re: Reversing a number To : comp.programming From : Gerry Quinn Date : Tue Sep 13 2005 11:16 am In article , willem@stack.nl says... > Gerry wrote: > ) The above bit of code *is* effectively converting it to a string (in > ) base-10 representation, and with the characters 0-9 represented by > ) digits), albeit in piecemeal fashion. > > You have an odd definition of 'string'. > With that definition, the *requirement* is to convert a number to a string. Essentially, that IS the problem specification. It is, after all, the simplest interpretation of the mathematical operation of 'reversing a number', that is to say, determining an number that can be represented in base-10 as the string of digits that is the reverse of the string representing the original number. How would you explain in detail the problem, without reference to strings? How would you reverse the number MCMLXXXIV? - Gerry Quinn .