From 0371480bd68235df0754cd0d2b15785000e9eb9c Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 28 Sep 2015 18:57:39 +0200 Subject: [PATCH] Math: add the 'round' function. --- plugins/Math/plugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/Math/plugin.py b/plugins/Math/plugin.py index 6b8a6342b..eb871fa6e 100644 --- a/plugins/Math/plugin.py +++ b/plugins/Math/plugin.py @@ -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'((?:(?