Skip to content

Instantly share code, notes, and snippets.

@da2x
Created July 14, 2017 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save da2x/662bf2afb29bbc30c14f67ac0e379342 to your computer and use it in GitHub Desktop.
Save da2x/662bf2afb29bbc30c14f67ac0e379342 to your computer and use it in GitHub Desktop.
>>> test = 0.8
>>> test -= 0.2
>>> print(test)
0.7000000000000001
>>> test = 0.8
>>> test -= 0.1
>>> print(test)
0.7000000000000001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment