Added a bit to the morehelp for calc to explain floating point inaccuracies.

This commit is contained in:
Jeremy Fincher 2003-09-23 15:42:01 +00:00
parent fa1115327f
commit e4143b467a
1 changed files with 4 additions and 1 deletions

View File

@ -115,7 +115,10 @@ class Math(callbacks.Privmsg):
"""<math expression>
Returns the value of the evaluted <math expression>. 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')