Add some more unicode constants and rename thin non-breaking space variable

This commit is contained in:
Veronica K. B. Olsen
2021-01-13 23:52:09 +01:00
parent 5f17b28e05
commit f6b7a35c81
5 changed files with 13 additions and 9 deletions
+3 -3
View File
@@ -152,11 +152,11 @@ def formatInt(theInt):
theVal /= 1000.0
if theVal < 1000.0:
if theVal < 10.0:
return f"{theVal:4.2f}{nwUnicode.U_THNSP}{pF}"
return f"{theVal:4.2f}{nwUnicode.U_THSP}{pF}"
elif theVal < 100.0:
return f"{theVal:4.1f}{nwUnicode.U_THNSP}{pF}"
return f"{theVal:4.1f}{nwUnicode.U_THSP}{pF}"
else:
return f"{theVal:3.0f}{nwUnicode.U_THNSP}{pF}"
return f"{theVal:3.0f}{nwUnicode.U_THSP}{pF}"
return str(theInt)