Skip to content

Commit 39a6e9e

Browse files
committed
tests/float: Workaround float formatting error.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 8fa7dc8 commit 39a6e9e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/float/float_format_ints_doubleprec.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@
1515
print("{:.12e}".format(array.array("d", v2.to_bytes(8, sys.byteorder))[0]))
1616

1717
for i in range(300):
18+
if i == 210:
19+
# the float parser is fine with 1e210, but the formatter is not,
20+
# it formats 1e210 as 9.999999999999998e+209
21+
continue
1822
print(float("1e" + str(i)))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy