python int to decimal code example
Example 1: what should you call a decimal value in python
x = 13.949999999999999999
g = float("{:.2f}".format(x))
Example 2: decimal to int python
print "%.4f" % 3.3333333333
3.3333
print "%.4f" % 6.6666666666
6.6667