This commit is contained in:
djimbo
2022-11-20 22:46:28 +03:00
parent 33062cc233
commit 2f47ff05d9
+1
View File
@@ -192,6 +192,7 @@ def snum(amount, remains=0) -> str:
else: else:
str_amount = str(amount) str_amount = str(amount)
if "." in str_amount:
while str_amount.endswith('0'): str_amount = str_amount[:-1] while str_amount.endswith('0'): str_amount = str_amount[:-1]
if str_amount.endswith('.'): str_amount = str_amount[:-1] if str_amount.endswith('.'): str_amount = str_amount[:-1]