[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: integer exponentiation with negative exponent
- From: Coda Highland <chighland@...>
- Date: Sat, 12 Apr 2014 01:47:54 -0700
On Sat, Apr 12, 2014 at 1:34 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> 1. If the exponent can be exactly represented by a positive integer,
> the result is evaluated by an algorithm mathematically equivalent to
> repeated multiplication by the first operand. When that is an integer,
> the result is exact when there is no overflow, but may be apparently
> meaningless otherwise.
As I demonstrated in my earlier post, it could promote to double on
overflow. But otherwise, exactly this, and I agree.
/s/ Adam