Skip to content

Commit

Permalink
fix logic error in percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Dec 6, 2023
1 parent 5c124e1 commit b3af8c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions markimg/markimg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 + ' '

Expand Down

0 comments on commit b3af8c1

Please sign in to comment.