tech-userlevel archive

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

Re: port-amd64/45391: pow(3) wrong result for x = 0.0 and y < 0



   Date: Tue, 8 Sep 2015 16:03:54 +0000
   From: David Holland <dholland-tech%netbsd.org@localhost>

   On Tue, Sep 08, 2015 at 08:41:55AM +0000, David Holland wrote:
    > Also, what's pow(+/-0, non-integer) supposed to produce?

   Erm, that was supposed to be "negative non-integer"...

IEEE 754-2008, Sec. 9.2.1 `Special values', p. 45:

> For the pow function (integral exponents get special treatment):
>     ...
>     pow(+/-0, y) is +infinity and signals the divideByZero exception for finite y<0 and not an odd integer


Home | Main Index | Thread Index | Old Index