[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Should not integer exponentiation work when it works?
- From: Egor Skriptunoff <egor.skriptunoff@...>
- Date: Thu, 9 Jun 2016 16:19:33 +0300
1) Do float calculation, as usual: result = a^b
If a is negative, then we calculate (-1)^b*(-a)^b,
but instead of returning float on step 3 we raise an error.