>>> a=0.1>>> b=0.2>>> c=a+b>>> c0.30000000000000004>>> from decimal import Decimal>>> c=Decimal(str(a))+Decimal(str(b))>>> float(c)0.3>>>