plancher python
import math
x = 3.86356
math.floor(x)
#Returns: 3
math.ceil(x)
#Returns: 4
AlarmClockMan
import math
x = 3.86356
math.floor(x)
#Returns: 3
math.ceil(x)
#Returns: 4
# Floor division in Python 3
5 / 2 -> 2.5
5 // 2 -> 2
# flooring a number means returning the first integer smaller than value
# the first integer smaller than -2.5 is -3
-5 // 2 -> -3
# int() truncates towards zero
int(-5 / 2) -> -2