Skip to content

Commit

Permalink
More decimal places for the low-Ks
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Feb 26, 2015
1 parent c39f389 commit 33d77f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def distFromStar(self, addSuffix=False):
return '{:n}'.format(ls)+suffix
if ls < 10000:
suffix = 'ls' if addSuffix else ''
return '{:.1f}K'.format(ls / 1000)+suffix
return '{:.2f}K'.format(ls / 1000)+suffix
if ls < 100000:
suffix = 'ls' if addSuffix else ''
return '{:n}K'.format(int(ls / 1000))+suffix
Expand Down

0 comments on commit 33d77f5

Please sign in to comment.