Re: Problem with factorial operator

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jean-Luc Lachance <jllachan(at)nsd(dot)ca>
Cc: "PostgreSQL General Help (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Problem with factorial operator
Date: 2002-04-04 19:09:50
Message-ID: 24820.1017947390@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jean-Luc Lachance <jllachan(at)nsd(dot)ca> writes:
> 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.

There's a TODO item to replace the existing integer-based factorial ops
with a NUMERIC-based one, which would work for output values up to
whatever the NUMERIC precision limit is (10^1000, I think). Want to
work on that?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Helge Bahmann 2002-04-04 19:42:39 Re: Update to readline and Postgresql
Previous Message tmorrison 2002-04-04 18:58:54 Update to readline and Postgresql