lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Excerpt from: lua-5.3.0-alpha/doc/manual.html

"idiv": the // (integer division) operation. Behavior similar to
the "add" operation, except that Lua will try a metamethod
if any operator is neither an integer nor a value coercible to
an integer (see §3.4.3).

2014-09-18 9:19 GMT+02:00 Dirk Schippers <lua@frixx-it.com>:
> Quote:
> assert(10 // 3 == 3)
> What is this // operator (which seems to have been \ before according to the
> document)?
> I don't seem to be able to find it in the reference guide.
>
> Andrew Starks schreef op 17/09/2014 20:39:
>
> It's a decent read, if not a bit out of date.
>
> http://devhacksandgoodies.wordpress.com/2014/05/06/whats-new-in-lua-5-3
>
> -Andrew
>
>