Even though Lua does not differentiate between floating point numbers and integers, there are some cases when you want to use integers. What is the best way to covert a number t
Lua 5.3 introduced a new operator, called floor division and denoted by //
5.3
floor division
//
Example below:
Lua 5.3.1 Copyright (C) 1994-2015 Lua.org, PUC-Rio >12//5 2
Lua 5.3.1 Copyright (C) 1994-2015 Lua.org, PUC-Rio
>12//5
2
More info can be found in the lua manual