Hello I am using a dictionary in Python storing some cities and their population like that:
population = { \'Shanghai\' : 17.8, \'Istanbul\' : 13.3, \'Karach
You have to use decimal.Decimal if you want to have the decimal represented exactly as you specified it on any machine in the world.
See the Python manual for information: http://docs.python.org/library/decimal.html
>>> from decimal import Decimal >>> print Decimal('3.14') 3.14