mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
tests/float/float_parse.py: Add tests for accuracy of small decimals.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user