Apr-06-2017, 06:49 PM
(This post was last modified: Apr-06-2017, 06:50 PM by alicarlos13.)
(Apr-06-2017, 06:13 PM)brocq_18 Wrote: Maybe this is more of a mathematical question than Python. How can I amend the 2nd argument in upperRound such that the value returned from it for maxValue=1234 is bigger than Maximum value/4=308.5, as is the result if applied in this situation?
Basically I want this script to be fully automated other than the maxValue being input by human, so for any maxValue/4, the output from upperRound should be bigger.
What you know have in the code is awkward, in the upperRound. I would just use
print math.ceil(a)