24.08.2017, 13:02
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
https://www.lua.org/cgi-bin/demo
'//' operator
|
24.08.2017, 13:02
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
24.08.2017, 17:46
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 |
« Next Oldest | Next Newest »
|