Hi, Vasile wrote: >Thanks a lot, it seems you're a great specialist in maths tricks. Nope but I've encountered a few on the list :) hmm...let's see... Scott Dattalo wrote: > This routine works in this contrived example. There's a little room for > optimization too... ah that's right, there's one :) Great stuff, /Tony -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.