Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
>>> from decimal import Decimal
>>> Decimal(10.2+30)
Decimal('40.2000000000000028421709430404007434844970703125')
>>> _ == Decimal(40.2)
True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.