View Single Post

   
  #3 (permalink)  
Old 05-10-2008, 02:06 PM
Peter Eisentraut
 
Posts: n/a
Default Re: [HACKERS] bug in numeric_power() function

Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > I have developed the attached patch which fixes 0 ^ 123.3.

>
> Did you actually read the wikipedia entry you cited?


Considering that 0::float8 ^ 0::float8 yields 1, making the numeric operator
do the same might not be completely unreasonable, but I find the rationale
that it is better for discrete mathematics fairly ludicrous on multiple
levels.

--
Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches

Reply With Quote