diff --git a/tradedb.py b/tradedb.py index aea54279..9922aa60 100644 --- a/tradedb.py +++ b/tradedb.py @@ -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