Apr-06-2017, 12:28 PM
import math maxValue = 12345678 a = maxValue / 4.0 print("This is the value of a: {}".format(a)) n = int(round(math.ceil(a), -4)) print("This is the ceiling of the division: {}".format(n))
Output:This is the value of a: 3086419.5
This is the ceiling of the division: 3090000