to print only upto 6 decimal places in python code example
Example: print upto 1 decimal place python
print("{:.1f}".format(number)) # Python3
print "%.1f" % number # Python2
print("{:.1f}".format(number)) # Python3
print "%.1f" % number # Python2