Right now, NaN/infinity values will produce "nan" and "inf", but
Python doesn't allow those in source code. This change will wrap
those values in float(''), which is allowed.
Tests for Python 2.7 and 3.8 have been added as well.
Fixes #136
9 lines
152 B
Python
9 lines
152 B
Python
a = 1e300 * 1e300 * 0
|
|
b = -1e300 * 1e300 * 0
|
|
c = 1e300 * 1e300
|
|
d = -1e300 * 1e300
|
|
e = float('nan')
|
|
f = float('-nan')
|
|
g = float('inf')
|
|
h = float('-inf')
|