lua-users home
lua-l archive

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


2014-04-23 15:57 GMT+02:00 Liam Devine <liamdevine@oolua.org>:
> The work documentation for math.pow still states [1]:
> "Returns xy. (You can also use the expression x^y to compute this value.) "
>
> This is not always true and depends on the operands:

> lua53 -e"print(2^-1)"
> lua53: (command line):1: integer exponentiation with negative exponent
> stack traceback:

There was a thread on this, and it's not totally out of the question that
2^-1 will become legal again.