From 0f3264cf26f28815ecaf2cd5549e278ad6ac8e8a Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Sat, 8 Feb 2020 16:02:42 +0100 Subject: [PATCH] Add modulo operator to new math evaluator Closes #1402. --- src/utils/math_evaluator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/math_evaluator.py b/src/utils/math_evaluator.py index e890bc542..9c0519ec5 100644 --- a/src/utils/math_evaluator.py +++ b/src/utils/math_evaluator.py @@ -56,6 +56,7 @@ BIN_OPS = { ast.Sub: operator.sub, ast.Mult: operator.mul, ast.Div: operator.truediv, + ast.Mod: operator.mod, ast.Pow: operator.pow, ast.BitXor: operator.xor, ast.BitOr: operator.or_,