Subj : Re: Reversing a number To : comp.programming From : Willem Date : Wed Sep 14 2005 11:05 am Gerry wrote: ) Not directly, but conceptually it is all about manipulating the base-10 ) string representation. What are easily comprehensible in these terms ) turn into kludgy numeric operations instead. When I take x % 10, I am ) determining a value that encodes a digit in the string representation. ) The right end of the string, as I look at the string representing the ) number. That may be true, but in the context of the statement that started this whole discussion*, it is not relevant what the code is doing conceptually. *) The statement was that the algorithm 'convert to string, reverse string, convert back to number' is more complex than the algorithm involving direct manipulation of mumbers. SaSW, Willem -- Disclaimer: I am in no way responsible for any of the statements made in the above text. For all I know I might be drugged or something.. No I'm not paranoid. You all think I'm paranoid, don't you ! #EOT .