mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Added a bit to the morehelp for calc to explain floating point inaccuracies.
This commit is contained in:
parent
fa1115327f
commit
e4143b467a
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user