#Python decimal module is cool, but be careful to use strings for initialization, or you might not get what you want:
>>> Decimal(1.5)
Decimal('1.5')
>>> Decimal(1.6)
Decimal('1.600000000000000088817841970012523233890533447265625')
>>> Decimal('1.6')
Decimal('1.6')
#repostfromapastlife #pythontip #Python
#Python decimal module is cool, but be careful to use strings for initialization, or you might not get what you want:
>>> Decimal(1.5)
Decimal('1.5')
>>> Decimal(1.6)
Decimal('1.600000000000000088817841970012523233890533447265625')
>>> Decimal('1.6')
Decimal('1.6')
#repostfromapastlife #pythontip #Python