python3 ceil code example
Example 1: python ceil
def ceil(k,b):
return b-k%b+k
print(ceil(5,10)) # Prints: 10
print(ceil(7.32,1.829)) # Prints: 9.145
Example 2: ceil in python3
import math
math.ceil( x )
def ceil(k,b):
return b-k%b+k
print(ceil(5,10)) # Prints: 10
print(ceil(7.32,1.829)) # Prints: 9.145
import math
math.ceil( x )