Eric> BTW, I thought there was a built-in function returning x! Eric> somewhere, but I didn't find it... Was it a dream? Yup... ;-) Factorial is one of those functions that's so easily written that it's not worth stuffing in a standard module somewhere. -- Skip Montanaro (skip at pobox.com - http://www.mojam.com/)