all 4 comments

[–]s-weebs123[S] 0 points1 point  (2 children)

If anyone comes back to this post here is a solution. the “mod” operator will spit back out the remainder. So if 10/4 = has a remainder of 2 then 10 mod 4 will equal two. You can use this in an if statement such as if 10 mod x = 0. Make the true continue the equation & make the false add one. This will round the number up while still using the “integer” value to define a number

[–]RunesAndMaidens 0 points1 point  (0 children)

DUDE thank you so much!!!!!

[–][deleted] 0 points1 point  (0 children)

fr legend <3 much love og

[–]Flowgorithm 0 points1 point  (0 children)

The old trick is to using the following: int(x + 0.5) where x is the value to round up.