Math: add the 'round' function.

This commit is contained in:
Valentin Lorentz 2015-09-28 18:57:39 +02:00
parent 532309ecff
commit 0371480bd6
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ class Math(callbacks.Plugin):
_mathEnv['abs'] = abs
_mathEnv['max'] = max
_mathEnv['min'] = min
_mathEnv['round'] = round
_mathSafeEnv = dict([(x,y) for x,y in _mathEnv.items()])
_mathSafeEnv['factorial'] = _factorial
_mathRe = re.compile(r'((?:(?<![A-Fa-f\d)])-)?'