IDLua
IDLua copied to clipboard
Integer division operator is not recognized
Lua 5.4 (and probably a few earlier versions) support the integer division operator //
.
This operator should not produce parse errors, and when formatting the source code, should not be split into / /
. Example program:
local function roundup(n, mul)
return (n + mul) // mul * mul
end