[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 5.2 work2 documentation for math.pow
- From: Dirk Laurie <dirk.laurie@...>
- Date: Wed, 23 Apr 2014 16:02:28 +0200
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.