Skip to content

Commit

Permalink
Merge branch 'gwall/azaitsev#1/nines-bug'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Wall committed Jul 9, 2021
2 parents 5c75c80 + 7090e35 commit 93e7853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion millify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def millify(n, precision=0, drop_nulls=True, prefixes=[]):
millidx += 1
n = round(n / 1000.0, precision)
if n < 1000:
round(n, precision)
n = round(n, precision)
result = '{}'.format(n)
if drop_nulls:
result = result.rstrip('0').rstrip('.')
Expand Down

0 comments on commit 93e7853

Please sign in to comment.