Skip to content

Instantly share code, notes, and snippets.

@raeq
Created May 3, 2020 11:00
Show Gist options
  • Save raeq/1862051ba9dbf054b0d7bf3b21c7913c to your computer and use it in GitHub Desktop.
Save raeq/1862051ba9dbf054b0d7bf3b21c7913c to your computer and use it in GitHub Desktop.
from decimal import *
setcontext(BasicContext)
i:Decimal = Decimal(0.0)
for value in range(10):
i += Decimal(0.1)
print(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment