change the format of the pi output a bit

This commit is contained in:
Brian S. Stephan 2010-10-28 20:05:08 -05:00
parent eeb8ff83bf
commit 5dda9ac1e5
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class Pi(Module):
db.rollback()
return self.reply(connection, replypath, "sqlite error: " + str(e))
return self.reply(connection, replypath, "({0:.10f}, {1:.10f}) is {2}within the circle. pi is {5:.10f} ({3:d}/{4:d}).".format(x, y, "" if inside else "not ", count_inside, count, pi));
return self.reply(connection, replypath, "({0:.10f}, {1:.10f}) is {2}within the circle. pi is {5:.10f}. (i:{3:d} p:{4:d})".format(x, y, "" if inside else "not ", count_inside, count, pi));
# vi:tabstop=4:expandtab:autoindent
# kate: indent-mode python;indent-width 4;replace-tabs on;