summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--tests/float/float_parse.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/float/float_parse.py b/tests/float/float_parse.py
index 4b026de1c8..4b5fc613d3 100644
--- a/tests/float/float_parse.py
+++ b/tests/float/float_parse.py
@@ -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)