2
0
forked from kodorvan/stcs

The function allows you to write the number 0

This commit is contained in:
algizn97
2025-10-10 13:22:13 +05:00
parent aa9f04c27e
commit fcdc9d7483

View File

@@ -34,7 +34,7 @@ def is_number(value: str) -> bool:
# Convert the string to a float
num = float(value)
# Check if the number is positive
if num <= 0:
if num < 0:
return False
# Check if the string contains "+" or "-"
if "+" in value or "-" in value: