From 881e3c1ae72264b00a49103b6672ba48aadbede4 Mon Sep 17 00:00:00 2001
From: AlexandraAlter <70817151+AlexandraAlter@users.noreply.github.com>
Date: Sun, 8 Aug 2021 19:11:02 +0100
Subject: [PATCH] Added integer division documentation
---
index.html | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/index.html b/index.html
index fbb792b..3694017 100755
--- a/index.html
+++ b/index.html
@@ -244,12 +244,14 @@
operators
a - b -- sub
a * b -- mul
a / b -- div
+a \ b -- integer div
a % b -- mod
a ^ b -- pow
a += b -- sum to
a -= b -- sub to
a *= b -- mul to
a /= b -- div to
+a \= b -- integer div to
a %= b -- mod to
a ^= b -- pow to
a == b -- compare equals
@@ -498,6 +500,9 @@ metatables :: mathematic operators
-- division; returned by 'a / b'
function mt.__div(a, b) return a / b end
+-- integer division; returned by 'a \ b'
+function mt.__idiv(a, b) return a \ b end
+
-- modulo; returned by 'a % b'
function mt.__mod(a, b) return a % b end