Problem with factorial operator

Поиск
Список
Период
Сортировка
От Jean-Luc Lachance
Тема Problem with factorial operator
Дата
Msg-id 3CAC8A8A.2FFC3DC0@nsd.ca
обсуждение исходный текст
Ответ на hex values  ("Oberpriller, Wade D." <oberpwd@nsc-msg01.network.com>)
Ответы Re: Problem with factorial operator  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Problem with factorial operator  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-general
Hi all,

The PG Documentation states:


tgl=> select cast(text '44' as int8) ! as "factorial";
      factorial
---------------------
 2673996885588443136
(1 row)


If you try it, you will get the same result, but it is the wrong answer.
Factorial work up to 20. After that one gets negative results.


JLL

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: binary data storage
Следующее
От: tmorrison
Дата:
Сообщение: Update to readline and Postgresql