From 1ab746907b56a09785786efce074d7c3dfad9c24 Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Tue, 7 Jan 2014 21:57:33 -0500 Subject: [PATCH] py/stats.py: only print 3 decimal places. --- py/stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/stats.py b/py/stats.py index fbdc054..f359233 100755 --- a/py/stats.py +++ b/py/stats.py @@ -28,9 +28,9 @@ for game in rlgall.gamelist: for i in range(0, 10000, 1000): actual = len([ s for s in scores if i <= s < i + 1000 ]) predicted = (cdf(i + 1000) - cdf(i)) * count - print("{0:5}: {1:4} {2}".format(i, actual, predicted)) + print("{0:5}: {1:4} {2:.3}".format(i, actual, predicted)) high = max(scores) - print("Max: {0} {1}\n".format(high, 1 - cdf(high))) + print("Max: {0} {1:.3}\n".format(high, 1 - cdf(high))) cur.close() conn.close()