Treat non-numerical strings as zeroes when numifying.

This commit is contained in:
AccentuSoft
2022-06-13 15:49:13 +03:00
parent e68a067806
commit ae3cf3d9d0

View File

@@ -404,7 +404,12 @@ class LQLQueryBuilder:
else:
break
return str(float(tempString[count:count + count2]))
# If there are no numbers in the string, its numeric value is 0.
try:
floatValue = float(tempString[count:count + count2])
except ValueError:
floatValue = 0.0
return str(floatValue)
def modifyUpperCase(self, valueA: str):
return valueA.upper()