lua-users home
lua-l archive

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


> My personal inclination would be round towards zero, because it
> would be the most consistent behavior; that is, for any integral
> value i, tointeger(i / n) == i // n

Both round towards -inf. (Actually, this decision was set when we
introduced the modulus operator in Lua, many years ago. There was a
good discussion about that at the time.)

-- Roberto