Skip to content

Commit

Permalink
It's better to just remove the dot
Browse files Browse the repository at this point in the history
  • Loading branch information
MEDVEDx64 committed Oct 24, 2017
1 parent e8a5224 commit 3614463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions money.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_balance(db, login):

def get_str(v):
if v == 0:
return '0.0'
return '0'

if v < 0.0000000001 and v >= 1:
return str(v)
Expand All @@ -59,6 +59,6 @@ def get_str(v):

s = ''.join(s).strip()
if s.endswith('.'):
s += '0'
s = s[:-1]

return s

0 comments on commit 3614463

Please sign in to comment.