This is my code:
num = math.log(536870912) / math.log(2) # num = 29.0
ceil = math.ceil(num)
floor = math.floor(num)
print(ceil, floor)
The output is (30.0, 29.0)
My question is when I just print math.ceil(29.0) the result is 29.0, why the above code gives me the 30.0 as ceiling?