Re: [HACKERS] bug in numeric_power() function

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [HACKERS] bug in numeric_power() function
Дата
Msg-id 20080507223221.GT20150@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: [HACKERS] bug in numeric_power() function  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: [HACKERS] bug in numeric_power() function  (Bruce Momjian <bruce@momjian.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] bug in numeric_power() function
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] bug in numeric_power() function