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?

No. :-) If we want to stick to C-like conventions (suggested by the name %) then it should satisfy:

  a // b = (a - a%b)/b

--
Wim