Am 10.05.2006 um 16:57 schrieb Enrico Schwass:
Hello
As I guessed, there is more than one way to do it. Rons solution is similiar to mine, the one Markus posted is similiar to the other I mentioned before. Anyway. Both of you did it shorter. Thank you for your contributions That gives me some more inspiration.
Note though that Markus's solution is both more flexible by allowing other bases than 10, and more than 20 times faster for small integers (still 2x for large ones).
- Bert -