| **Navigation:**  [[templates.htm|Templates]] > Guide to all Templates > [[additional libraries and templates.htm|Additional Libraries and Templates]] > Statistics Library >====== FACTORIAL (factorial of a number) ====== | [[statistics library.htm|{{btn_prev_n.gif|Previous page}}]][[additional libraries and templates.htm|{{btn_home_n.gif|Return to chapter overview}}]][[frequency frequency count of an item in a set .htm|{{btn_next_n.gif|Next page}}]] | | || **FACTORIAL(number)** {{blk2blue.jpg|blk2blue.jpg}} | **FACTORIAL** | Computes the factorial of a number. | | number | A numeric constant or variable containing a positive integer value. | The FACTORIAL function implements the standard factorial formula. For example, if the number provided is 5 then the function returns the value of: (1 x 2 x 3 x 4 x 5) = 120. **Return DataType:**     REAL **Example:** **X = 5** **FactorialOfX = FACTORIAL(X)     !call FACTORIAL**