convert into decimal in python code example
Example 1: decimal to int python
print "%.4f" % 3.3333333333
3.3333
print "%.4f" % 6.6666666666
6.6667
Example 2: decimal conversion python
#Example with binary number 10101100 which is 172 in denary
number = 10101100
print(int(str(number),base=2))
#Prints out the denary value so 172 in this example.