Arbitrary precision integer arithmetic: ceiling?

Paul Rubin http
Sat Mar 8 18:26:35 EST 2008


Alasdair <amca01 at gmail.com> writes:
> What is the best way of finding a ceiling of a quotient of arbitrary sized
> integers?

ceiling(a/b) = (a+b-1)//b



More information about the Python-list mailing list