Template
mirror of
https://github.com/djimboy/djimbo_template_aio3.git
synced 2026-08-25 22:47:43 +00:00
Update
This commit is contained in:
@@ -192,7 +192,8 @@ def snum(amount, remains=0) -> str:
|
|||||||
else:
|
else:
|
||||||
str_amount = str(amount)
|
str_amount = str(amount)
|
||||||
|
|
||||||
while str_amount.endswith('0'): str_amount = str_amount[:-1]
|
if "." in str_amount:
|
||||||
|
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]
|
||||||
|
|
||||||
if remains != 0:
|
if remains != 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user