I have two variables : count, which is a number of my filtered objects, and constant value per_page. I want to divide count by per_page and get integer value but I no matter
From Python documentation (math module):
math.ceil(x) Return the ceiling of x as a float, the smallest integer value greater than or equal to x.
math.ceil(x)
Return the ceiling of x as a float, the smallest integer value greater than or equal to x.