Skip to content

Commit ebd46c1

Browse files
Minor edit.
1 parent 6ba0e15 commit ebd46c1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Basic_Maths/Basic_Maths.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ def Multiplication(x,y,ResultDialog):
7575
p("{0} {1} {2} * {3} = {4}". format(select_func,ResultDialog,x,y,result))
7676

7777
def Division(x,y,ResultDialog,check_zero_control_msg):
78-
if y==0:
78+
if x==0 or y==0:
7979
p(check_zero_control_msg)
80-
if y>0:
80+
if y>0 and x>0:
8181
result=x/y
8282
p("{0} {1} {2} / {3} = {4}". format(select_func,ResultDialog,x,y,result))
8383

Basic_Maths/lib_ver_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
PYTHON_LIB_NAME="Basic_Maths"
99
PYTHON_LIB_LICENCE="GPL2"
10-
PYTHON_LIB_VER="3.0"
10+
PYTHON_LIB_VER="3.1"
1111
PYTHON_LIB_SUPPORT_PLATFORM="Windows/Linux/macOS"
12-
PYTHON_LIB_RELEASE_DATE="5/24/2024, Time: 21:19"
12+
PYTHON_LIB_RELEASE_DATE="5/24/2024, Time: 21:53"
1313
PYTHON_LIB_AUTHOR="LinuxUsersLinuxMint"

0 commit comments

Comments
 (0)