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