[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (work1) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sun, 7 Jul 2013 14:30:20 -0300
> 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