How to perform ceiling-division in integer arithmetic?
Negate before and after?
>>> -(-102 // 10)
11
from math import ceil
print(ceil(10.3))
11
For your use case, use integer arithmetic. There is a simple technique for converting integer floor division into ceiling division:
items = 102
boxsize = 10
num_boxes = (items + boxsize - 1) // boxsize
Alternatively, use negation to convert floor division to ceiling division:
num_boxes = -(items // -boxsize)