diff options
author | Damien George <damien.p.george@gmail.com> | 2017-10-04 23:15:55 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-10-10 16:01:13 +1100 |
commit | 08a196697c5dfb8cbe3b3e85c1c5f94e3a27804c (patch) | |
tree | 502d4d42aefb770f31eecb0dca8b55bdab7beaee /tests/float/float1.py | |
parent | 81a06d2c9c3ce081043e1eb948b65014f1b1786a (diff) |
py/formatfloat: Don't print the negative sign of a NaN value.
NaN may have the sign bit set but it has no meaning, so don't print it out.
Diffstat (limited to 'tests/float/float1.py')
-rw-r--r-- | tests/float/float1.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/float/float1.py b/tests/float/float1.py index 137dacc23..c64f965a7 100644 --- a/tests/float/float1.py +++ b/tests/float/float1.py @@ -21,6 +21,7 @@ print(float("INF")) print(float("infinity")) print(float("INFINITY")) print(float("nan")) +print(float("-nan")) print(float("NaN")) try: float("") |