mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-12 13:12:35 +01:00
Math: add the 'round' function.
This commit is contained in:
parent
532309ecff
commit
0371480bd6
@ -120,6 +120,7 @@ class Math(callbacks.Plugin):
|
|||||||
_mathEnv['abs'] = abs
|
_mathEnv['abs'] = abs
|
||||||
_mathEnv['max'] = max
|
_mathEnv['max'] = max
|
||||||
_mathEnv['min'] = min
|
_mathEnv['min'] = min
|
||||||
|
_mathEnv['round'] = round
|
||||||
_mathSafeEnv = dict([(x,y) for x,y in _mathEnv.items()])
|
_mathSafeEnv = dict([(x,y) for x,y in _mathEnv.items()])
|
||||||
_mathSafeEnv['factorial'] = _factorial
|
_mathSafeEnv['factorial'] = _factorial
|
||||||
_mathRe = re.compile(r'((?:(?<![A-Fa-f\d)])-)?'
|
_mathRe = re.compile(r'((?:(?<![A-Fa-f\d)])-)?'
|
||||||
|
Loading…
Reference in New Issue
Block a user