python why round numbers so long code example
Example 1: python round down
>>> int(1.6)
1
>>> int(2)
2
>>> int(3.9)
3
Example 2: how to round a decimal to the nearest whole number in python
>>> import math
>>> math.ceil(1.2)
2
>>> math.ceil(2)
2
>>> math.ceil(-0.5)
0