'//' operator - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: '//' operator (/showthread.php?tid=959) |
'//' operator - buuuudzik - 24.08.2017 Please add support to use "//" operator as a divide without the remainder. In lua demo it is possible. https://www.lua.org/cgi-bin/demo RE: '//' operator - admin - 24.08.2017 Not possible since we are using LuaJIT instead of standard Lua. It's much faster and has some advanced features. Instead of using // you can simply do this: Code: res = math.floor(x / y) Or write a wrapper function: Code: function idiv(x, y) return math.floor(x / y) end |