Re: [HACKERS] Automatic type conversion

Поиск
Список
Период
Сортировка
От Eugene Selkov Jr.
Тема Re: [HACKERS] Automatic type conversion
Дата
Msg-id 3555605C.FCB30834@mcs.anl.gov
обсуждение исходный текст
Ответ на Automatic type conversion  ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>)
Список pgsql-hackers
Dave Chapeskie wrote:
>
> On Sun, May 10, 1998 at 12:14:11AM +0000, Thomas G. Lockhart wrote:
> > -- there isn't a floating point factorial operator...
> > tgl=> select (4.3 !);
> > ?column?
> > --------
> >       24
> > (1 row)
>
> Am I the only one that thinks the above is wrong?  4.3 factorial is
> mathematically undefined and does NOT equal 24.

Just put the gamma function in there and assume the argument is always a
float. A decent gamma function algorithm should make a special case for
integers.

--Gene

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dave Chapeskie
Дата:
Сообщение: Re: [HACKERS] Automatic type conversion
Следующее
От: "Eugene Selkov Jr."
Дата:
Сообщение: Re: [HACKERS] Help me!!! Pleass