change the format of the pi output a bit
This commit is contained in:
parent
eeb8ff83bf
commit
5dda9ac1e5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue