round up decimal upto 6 places in python code example
Example 1: how to round a float in python
round(number, ndigits)
Example 2: python round down
>>> int(1.6)
1
>>> int(2)
2
>>> int(3.9)
3
round(number, ndigits)
>>> int(1.6)
1
>>> int(2)
2
>>> int(3.9)
3