From ecac79e7d4e83ce728b5eff2a8111f4be50b1d1e Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 20 Apr 2024 08:32:04 +0100 Subject: Added modulo operator --- README.md | 2 +- funco | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8815658..a6d6214 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Literals include: Operators are functions, that includes: -* `+`, `-`, `*`, `/` +* `+`, `-`, `*`, `/`, `mod` * `>`, `<`, `>=`, `<=`, `=`, `!=` * `and`, `or`, `not` diff --git a/funco b/funco index c1983d6..542980a 100755 --- a/funco +++ b/funco @@ -285,6 +285,7 @@ def default_env(): "-": operator.sub, "*": operator.mul, "/": operator.truediv, + "mod": operator.mod, ">": operator.gt, "<": operator.lt, ">=": operator.ge, -- cgit v1.2.3