mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +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>
|
"""<math expression>
|
||||||
|
|
||||||
Returns the value of the evaluted <math expression>. The syntax is
|
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 = privmsgs.getArgs(args)
|
||||||
text = text.translate(string.ascii, '_[] \t')
|
text = text.translate(string.ascii, '_[] \t')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user