Alex wrote: > > > I'm not aware of one, but it's easy to roll your own... > > That wasn't really safe. You could get into infinite loops with > non-integer or negative inputs. This version should cope with that: Pukka! Just the job. Cheers, Stuart