Last active
August 1, 2018 06:45
-
-
Save taojy123/af6334f1a1dd539bd167431ced42e0ce to your computer and use it in GitHub Desktop.
python 浮点精度示例
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assert 0.1 + 0.2 == 0.30000000000000004 | |
assert 0.3 - 0.2 == 0.09999999999999998 | |
assert 5.06 * 100 == 505.99999999999994 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment