Skip to content
Snippets Groups Projects
Commit 9849209a authored by Damien George's avatar Damien George
Browse files

tests/float/float_parse.py: Add tests for accuracy of small decimals.

parent b768cc6c
No related branches found
No related tags found
No related merge requests found
......@@ -30,3 +30,7 @@ print(float('1e4294967301'))
print(float('1e-4294967301'))
print(float('1e18446744073709551621'))
print(float('1e-18446744073709551621'))
# check small decimals are as close to their true value as possible
for n in range(1, 10):
print(float('0.%u' % n) == n / 10)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment