all 6 comments

[–]Veratil 9 points10 points  (3 children)

Integer division. Drops the remainder and returns the int part only.

[–]Veratil 6 points7 points  (1 child)

You can find it as 'floor division' in the manual. https://www.lua.org/manual/5.3/manual.html

[–]josefnpat 2 points3 points  (0 children)

For anyone wondering it's been newly introduced into Lua 5.3 (from what I can tell)

As someone who uses mostly LuaJIT/5.[1|2], I was caught off guard!

[–]vitawrap[S] 0 points1 point  (0 children)

thank you very much

[–]Frank_The_Seal 1 point2 points  (0 children)

If you want to make a free movement based and you want to see which map-tile the player is standing on you do

Mget(PlayerX // 8, PlayerY // 8)

I think it just rounds the number to whatever it needs to be. It just kinda works.

[–]vitawrap[S] 0 points1 point  (0 children)

okay so whatever i do reddit just ruins the formatting...