Default ceiling doesn't work this way. Ceil should work in this way - Example 2 - 3.1, 4.5, 5.9 after ceiling - 3.5, 4.5, 6

1

There are 1 best solutions below

0
compli On
def roundOffnumber (number):
 return (math.ceil(number*2))/2