lua-users home
lua-l archive

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

It was thus said that the Great Miles Bader once stated:
> For that reason, it would be nice if Lua 5.3 came with a standard
> "math.idiv" function, which basically just returns a//b...

  Hmm ... in C, the div() function returns both the quotient and the
remainder.  If one is provided, you might as well return both results [1].


[1]	Wrote my own idiv() function that does just that: