From e4143b467ab6221b29dad046344e3a11e074cff5 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 23 Sep 2003 15:42:01 +0000 Subject: [PATCH] Added a bit to the morehelp for calc to explain floating point inaccuracies. --- plugins/Math.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/Math.py b/plugins/Math.py index 92f672333..fe16dc91a 100644 --- a/plugins/Math.py +++ b/plugins/Math.py @@ -115,7 +115,10 @@ class Math(callbacks.Privmsg): """ Returns the value of the evaluted . The syntax is - Python syntax; the type of arithmetic is floating point. + Python syntax; the type of arithmetic is floating point. Floating + point arithmetic is used in order to prevent a user from being able to + crash to the bot with something like 10**10**10**10. One consequence + is that large values such as 10**24 might not be exact. """ text = privmsgs.getArgs(args) text = text.translate(string.ascii, '_[] \t')