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.
This commit is contained in:
@@ -21,6 +21,7 @@ print(float("INF"))
|
||||
print(float("infinity"))
|
||||
print(float("INFINITY"))
|
||||
print(float("nan"))
|
||||
print(float("-nan"))
|
||||
print(float("NaN"))
|
||||
try:
|
||||
float("")
|
||||
|
||||
Reference in New Issue
Block a user