Arbitrary precision integer arithmetic: ceiling?

Paul Rubin http
Sun Mar 9 00:26:35 CET 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