Re: [HACKERS] bug in numeric_power() function - Mailing list pgsql-patches

From Alvaro Herrera
Subject Re: [HACKERS] bug in numeric_power() function
Date
Msg-id 20080507223221.GT20150@alvh.no-ip.org
Whole thread Raw
In response to Re: [HACKERS] bug in numeric_power() function  (Bruce Momjian <bruce@momjian.us>)
Responses Re: [HACKERS] bug in numeric_power() function
List pgsql-patches
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/Exponentiation#Powers_of_zero

0^123.3 is 0, not 1.

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

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] bug in numeric_power() function
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] bug in numeric_power() function