lua-users home
lua-l archive

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


>     if ( math.floor(v/2) == v/2) then

Note that Lua 5.1 introduced the % operator, so this can be written as

      if v%2 == 0 then

--
Wim