Re: bug in numeric_power() function - Mailing list pgsql-hackers

From Richard Wang
Subject Re: bug in numeric_power() function
Date
Msg-id frck80$2rcv$1@news.hub.org
Whole thread Raw
In response to bug in numeric_power() function  ("Richard Wang" <ruc_wang@hotmail.com>)
List pgsql-hackers
I also have a question here:
isn't dpow enough for calculation?
Why added numeric_power?
"Tom Lane" <tgl@sss.pgh.pa.us> д����Ϣ����:12538.1205298992@sss.pgh.pa.us...
> "Richard Wang" <ruc_wang@hotmail.com> writes:
>> I expected 0 ^ 123.3 to be 0, but it reported error as follows
>> postgres=# select 0 ^ 123.3;
>> ERROR:  cannot take logarithm of zero
>
> Hmm, seems like the numeric and float8 power operators don't agree
> about 0^0 either...
>
> regards, tom lane
>
> -- 
> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
> 




pgsql-hackers by date:

Previous
From:
Date:
Subject: File your tax with NETFILE today
Next
From: NikhilS
Date:
Subject: Re: COPY issue(gsoc project)