[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: integer exponentiation with negative exponent
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 14 Apr 2014 10:48:41 -0300
> What about the overflow case? What are your thoughts as a member of
> the core Lua team -- should exponentiation in the overflow case return
> an incorrect value, return a float value, or do something else?
It is doing what all other operations are doing: wraping around (that is,
it returns the correct arithmetic result modulo 2^64).
-- Roberto