summaryrefslogtreecommitdiff
path: root/calc.py
diff options
context:
space:
mode:
authorPanFritz <redstonenoobpan@gmail.com>2015-01-16 23:40:14 +0100
committerPanFritz <redstonenoobpan@gmail.com>2015-01-16 23:40:14 +0100
commit1515777494fc9b4c03d1fd5298c92cf67ccc4680 (patch)
tree3ada32abefe8fe65e6df1ca83750044785731d28 /calc.py
parent9a42172c4eacf58cead435fe7596155594c17424 (diff)
added . to maths operator to support floats
Diffstat (limited to 'calc.py')
-rw-r--r--calc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/calc.py b/calc.py
index 2a34d37..457ce9d 100644
--- a/calc.py
+++ b/calc.py
@@ -1,7 +1,7 @@
from helpers import *
calc_users = open_json_file("calc", [])
-math_operators = ["+", "-", "*", "/", "&", "|"]
+math_operators = ["+", "-", "*", "/", "&", "|",".",]
ignore_operators = ["**", "&&", "||"] # ** may be too intensive, the others cause syntax errors
calc_perm = "utils.calc"