# HG changeset patch # User John "Elwin" Edwards # Date 1389149853 18000 # Node ID c045d4dcf88a9c23ace2b2a6a5c0f79268aeaa77 # Parent 09ef92dc443982799bed0c3f69a58ad0872e3c1c py/stats.py: only print 3 decimal places. diff -r 09ef92dc4439 -r c045d4dcf88a py/stats.py --- a/py/stats.py Fri Jan 03 13:02:29 2014 -0500 +++ b/py/stats.py Tue Jan 07 21:57:33 2014 -0500 @@ -28,9 +28,9 @@ 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()