meta data for this page
  •  

F_FACT, F_FACTORIAL

function from adhoc

compatibility to GrUDF

function from adhoc compatibility to GrUDF


Inputs/Outputs

   Input      INTEGER     integer
   Output     DOUBLE      factorial (the product of all natural numbers from 1 to parameter 1)

Syntax

   TestSQL
   SELECT 6.000 AS ISCORRECT, F_FACT(3) FROM RDB$DATABASE;
   SELECT 6.000 AS ISCORRECT, F_FACTORIAL(3) FROM RDB$DATABASE;
   SELECT NULL AS ISCORRECT, F_FACT(NULL) FROM RDB$DATABASE;