1
2
3
2
3
function idiv(value1, value2) 	return math.floor(value1 / value2 + 0.5) end
Scripts
operation "//" - idiv
operation "//" - idiv
1

function idiv(value1, value2) 	return math.floor(value1 / value2 + 0.5) end
Bowlinghead: That's only the CS2D part. The Lua in CS2D however contains all the Lua commands available.
DC would have to update the Lua version. math.floor(x/y)
print(1//2, math.floor(1/2)) print(-1//2, math.floor(-1/2))
1
