Commit f2678488 authored by Taddeus Kroes's avatar Taddeus Kroes

Added round() to results instead of ingeter cast.

parent 92b7ce59
......@@ -30,7 +30,7 @@ for c in C:
results.append(result)
i += 1
print '%d of %d, c = %f, gamma = %f, result = %d%%' \
% (i, len(C) * len(Y), c, y, int(result * 100))
% (i, len(C) * len(Y), c, y, int(round(result * 100)))
i = 0
......@@ -44,7 +44,7 @@ for c in C:
print ' %7s' % c,
for y in Y:
print '| %8d' % int(results[i] * 100),
print '| %8d' % int(round(results[i] * 100)),
i += 1
print
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment