View Single Post

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

Alvaro Herrera wrote:
> Bruce Momjian wrote:
> > 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?

>
> But that's about 0^0, not about 0^123.3. See this other subsection:
>
> http://en.wikipedia.org/wiki/Exponen...Powers_of_zero
>
> 0^123.3 is 0, not 1.


Ah, got it, and I updated the patch to remove the commment about
"discrete".

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +


--
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