From b3af8c1b9b412445a43bd328371cb2971a36173a Mon Sep 17 00:00:00 2001 From: "sandipsamal117@gmail.com" Date: Wed, 6 Dec 2023 18:08:24 -0500 Subject: [PATCH] fix logic error in percentage --- markimg/markimg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markimg/markimg.py b/markimg/markimg.py index 2b99f60..31fb8a6 100644 --- a/markimg/markimg.py +++ b/markimg/markimg.py @@ -653,9 +653,9 @@ def getSum(self, val1, val2): def compareLength(self, left, right): compareText = "equal" if left > right: - compareText = f'left longer({round(((left-right)/left)*100)}%)' + compareText = f'left longer({round(((left-right)/right)*100)}%)' elif right > left: - compareText = f'right longer({round(((right-left)/right)*100)}%)' + compareText = f'right longer({round(((right-left)/left)*100)}%)' return compareText + ' '