View Single Post

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

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.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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