From 5dda9ac1e5ac74b0f98d64a4e6eafcd53524d7db Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Thu, 28 Oct 2010 20:05:08 -0500 Subject: [PATCH] change the format of the pi output a bit --- modules/Pi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Pi.py b/modules/Pi.py index fb53a45..c69bc7b 100644 --- a/modules/Pi.py +++ b/modules/Pi.py @@ -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;