[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FACT()
 Computes the factorial
------------------------------------------------------------------------------
 Syntax

     FACT(<nValue>) --> nFactorial

 Argument

     <nValue>  Designates a value between 0 and 21.

 Returns

     FACT() returns the factorial of the specified value.

 Description

     FACT() computes the factorial of a value in the range of 0 to 21.  Since
     results for factorials over 21 are too large, the function returns -1 to
     indicate an error.

 Examples

     Show some factorials:

     ? FACT(1)         // Result: 1
     ? FACT(5)         // Result: 120
     ? FACT(21)        // Result: 51090942171709440000
     ? FACT(25)        // Result: -1 (Value too large !)
     ? FACT(0)         // Function returns 1


This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson