lua-users home
lua-l archive

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


> am i the only one that thinks it's weird to discuss so long about
> remainder/modulus when there's no integer division?

Remainder/modulus defines integer division:

  function Idiv (x, y) return (x - x%y)/y end

-- Roberto