From fcdc9d7483516cc720b4d0b37257e3a2d81e72de Mon Sep 17 00:00:00 2001 From: algizn97 Date: Fri, 10 Oct 2025 13:22:13 +0500 Subject: [PATCH] The function allows you to write the number 0 --- app/helper_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helper_functions.py b/app/helper_functions.py index d12f42f..04db1ce 100644 --- a/app/helper_functions.py +++ b/app/helper_functions.py @@ -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: