| From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
|---|---|
| To: | Bruce Momjian <bruce(at)momjian(dot)us> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Richard Wang <ruc_wang(at)hotmail(dot)com>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
| Subject: | Re: [HACKERS] bug in numeric_power() function |
| Date: | 2008-05-07 22:32:21 |
| Message-ID: | 20080507223221.GT20150@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-patches |
Bruce Momjian wrote:
> Tom Lane wrote:
> > Bruce Momjian <bruce(at)momjian(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2008-05-07 23:19:02 | Re: [HACKERS] bug in numeric_power() function |
| Previous Message | Bruce Momjian | 2008-05-07 22:22:05 | Re: [HACKERS] bug in numeric_power() function |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2008-05-07 23:19:02 | Re: [HACKERS] bug in numeric_power() function |
| Previous Message | Bruce Momjian | 2008-05-07 22:22:05 | Re: [HACKERS] bug in numeric_power() function |