Is there is a simple, pythonic way of rounding to the nearest whole number without using floating point? I\'d like to do the following but with integer arithmetic:
Yet another funny way:
q, r = divmod(total, surplus) skip = q + int(bool(r))