only use M.Nk format for hand numbers > 10000

This commit is contained in:
sqlcoder 2010-02-14 23:29:20 +00:00
parent 6026d5bcb3
commit 0ea95363fa

View File

@ -248,7 +248,7 @@ def n(stat_dict, player):
# If sample is large enough, use X.Yk notation instead
_n = stat_dict[player]['n']
fmt = '%d' % _n
if _n >= 1000:
if _n >= 10000:
k = _n / 1000
c = _n % 1000
_c = float(c) / 100.0