On Mar 8, 6:26 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > Alasdair <[EMAIL PROTECTED]> writes: > > What is the best way of finding a ceiling of a quotient of arbitrary sized > > integers? > > ceiling(a/b) = (a+b-1)//b
I prefer: ceiling(a/b) = -(-a)//b which also works if a and b are something other than integers (e.g. rational numbers). Mark -- http://mail.python.org/mailman/listinfo/python-list